:root {
    --primary-color: #00A884; /* WhatsApp's new brand green */
    --secondary-color: #008069; /* WhatsApp's darker green */
    --tertiary-color: #075E54; /* WhatsApp's darkest green */
    --background-color: #FCF5EB; /* WhatsApp's authentic background */
    --card-hover-color: #ffffff;
    --text-color: #111B21; /* WhatsApp's text color */
    --gradient-start: #00A884;
    --gradient-end: #008069;
    --message-background: #FFFFFF;
    --success-green: #00A884;
}

body {
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
    font-family: "Helvetica Neue", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.container {
    padding: 2em 1em !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.main-header {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 1.5em 2em !important;
    border-radius: 24px !important;
    margin-bottom: 2em !important;
    box-shadow: 
        0 20px 40px rgba(0, 168, 132, 0.2),
        inset 0 0 80px rgba(255, 255, 255, 0.15) !important;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease-in-out;
}

.hidden {
   display:none !important;
}

.ui.stackable.cards > .card.hidden {
    display: none !important;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(
            circle at top right,
            rgba(255,255,255,0.2) 0%,
            rgba(255,255,255,0) 60%
        ),
        linear-gradient(
            45deg,
            rgba(255,255,255,0.1) 0%,
            rgba(255,255,255,0) 70%
        );
    opacity: 0.8;
    z-index: 1;
}

.rotate-main-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: 
        radial-gradient(
            circle,
            rgba(255,255,255,0.1) 0%,
            transparent 70%
        );
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.main-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(
            circle,
            rgba(255,5,255,0.5) 0%,
            transparent 70%
        );
    animation: pulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.4; }
}

.main-header .ui.header {
    position: relative;
    z-index: 2;
    margin: 0 !important;
    font-weight: 700 !important;
    font-size: clamp(1.5em, 3vw, 1.8em) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.main-header .title-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.main-header .whatsapp.icon {
    font-size: 1em !important;
}

.main-header .whatsapp.icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.main-header .version-label {
    margin-top: 4px !important;
    background: rgba(255,255,255,0.12);
    color: white;
    font-size: 0.5em;
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-header .version-label:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .main-header {
        padding: 2em !important;
    }

    .main-header .ui.header {
        flex-direction: column;
    }

    .main-header .version-label {
        margin-top: 4px !important;
    }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.ui.header {
    font-weight: 600 !important;
    color: var(--text-color) !important;
}

.ui.cards > .card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border-radius: 16px !important;
    margin: 0.7em !important;
    background-color: var(--message-background) !important;
    border: 1px solid rgba(18, 140, 126, 0.1);
}

.ui.cards > .card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(18, 140, 126, 0.15) !important;
    background-color: var(--card-hover-color) !important;
}

.ui.horizontal.divider {
    font-size: 1.3em !important;
    color: var(--secondary-color) !important;
    margin: 2.5em 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ui.success.message {
    border-radius: 16px !important;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.1) !important;
    border: 1px solid rgba(37, 211, 102, 0.2) !important;
    background-color: rgba(231, 247, 232, 0.8) !important;
    color: var(--success-green) !important;
    animation: slideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.ui.button {
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important; */
    /* background: var(--primary-color) !important; */
    color: white !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

.ui.button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 16px rgba(0, 168, 132, 0.2) !important;
    filter: brightness(0.95);
}

.ui.form input, .ui.form textarea {
    border-radius: 12px !important;
    border: 2px solid rgba(18, 140, 126, 0.1) !important;
    transition: all 0.3s ease;
}

.ui.form input:focus, .ui.form textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.1) !important;
}

/*
.ui.toast-container {
    padding: 1.5em !important;
}

.ui.toast {
    border-radius: 16px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    background-color: var(--message-background) !important;
    border: 1px solid rgba(18, 140, 126, 0.1);
}
*/

.ui.grid {
    margin: -0.7em !important;
}

.ui.grid > .column {
    padding: 0.7em !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.ui.cards {
    animation: fadeIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ui.modal {
    border-radius: 20px !important;
    background-color: var(--message-background) !important;
    overflow: hidden;
}

.ui.modal > .header {
    border-radius: 20px 20px 0 0 !important;
    background: var(--gradient-start) !important;
    color: white !important;
    padding: 1.5em !important;
}

.ui.modal > .actions {
    border-radius: 0 0 20px 20px !important;
    background-color: rgba(248, 248, 248, 0.8) !important;
    backdrop-filter: blur(10px);
}

.ui.modal > .actions > .ui.button {
    _background: var(--primary-color) !important;
    _color: white !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}
