:root {

    --bg-color: #06213e;

    --card-bg: rgba(255, 255, 255, 0.03);

    --primary: #1ac7eb;

    --primary-hover: #1ac7eb;

    --text-main: #ffffff;

    --text-muted: #9ca3af;

    --border-color: rgba(255, 255, 255, 0.08);

    --success: #10b981;

    --error: #ef4444;

    --warning: #f59e0b;

    --glass-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.3);



    /* Novas cores para diferenciação */

    --automation-bg: rgba(30, 41, 59, 0.7);

    /* Azul escuro para automações */

    --title-color: #ffffff;

    /* Azul escuro para título */

    --title-glow: rgba(30, 64, 175, 0.3);

    /* Brilho do título */



    /* New Card Variables */

    --glass-bg: #1c2a42;

    --blue-glow: rgba(59, 130, 246, 0.2);

    --blue-primary: #ffffff;

    --blue-dark: #1e40af;

    --indigo: #4f46e5;

    --online: #10b981;

    --offline: #ef4444;

}



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

}



body {

    background: linear-gradient(to right, #0e0f15, #00254d);

    color: var(--text-main);

    min-height: 100vh;

    font-size: 14px;

}



.app-container {

    max-width: 98%;

    margin: 0 auto;

    padding: 1rem;

}



/* Header com título azul escuro */

.header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 1.5rem;

    padding-bottom: 1rem;

    border-bottom: 1px solid rgba(30, 64, 175, 0.2);

}



.logo {

    display: flex;

    align-items: center;

    gap: 10px;

}



.logo-icon {

    width: auto;

    height: 25px;

}





.logo h1 {

    font-size: 1.3rem;

    font-weight: 700;

    letter-spacing: -0.9px;

    color: var(--title-color);

}



.status-indicator {

    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 0.75rem;

    padding: 6px 12px;

    border-radius: 20px;

    background: rgba(30, 64, 175, 0.15);

    border: 1px solid rgba(30, 64, 175, 0.3);

    color: #60a5fa;

}



.status-indicator::before {

    content: "";

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: var(--success);

    animation: pulse 2s infinite;

}



@keyframes pulse {

    0% {

        opacity: 0.6;

    }



    50% {

        opacity: 1;

    }



    100% {

        opacity: 0.6;

    }

}



/* Glass Card - agora sólido e consistente */

.glass-card {

    background: #121826;

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 14px;

    padding: 1rem;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

}





.automation-card {

    background: #141c2b;

    border: 1px solid rgba(26, 199, 235, 0.12);

    border-radius: 14px;

    padding: 1rem;

    transition: all 0.3s ease;

    position: relative;

    overflow: hidden;

}



.automation-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 2px;



    background: linear-gradient(90deg,

            transparent,

            rgba(26, 199, 235, 0.6),

            transparent);

}





.automation-card:hover {

    transform: translateY(-4px);



    border-color: rgba(26, 199, 235, 0.25);



    box-shadow:

        0 12px 35px rgba(0, 0, 0, 0.45),

        0 0 25px rgba(26, 199, 235, 0.12);

}



.automation-card:hover::before {

    background: linear-gradient(90deg,

            transparent,

            rgba(26, 199, 235, 0.9),

            transparent);

}





/* Input Section */

.add-automation-section {

    margin-bottom: 1.5rem;

}



.add-automation-section h2 {

    font-size: 1rem;

    margin-bottom: 0.75rem;

    opacity: 0.9;

    color: #93c5fd;

    /* Azul mais claro para subtítulos */

}



.input-group {

    display: grid;

    grid-template-columns: 1fr 1fr 2fr auto;

    gap: 0.5rem;

}



input,

select {

    padding: 10px 14px;

    border-radius: 8px;

    font-size: 0.85rem;

    background: rgba(30, 41, 59, 0.5);

    border: 1px solid rgba(30, 64, 175, 0.3);

    color: var(--text-main);

    outline: none;

    transition: all 0.2s;

}



input:focus,

select:focus {

    border-color: var(--title-color);

    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);

    background: rgba(30, 41, 59, 0.7);

}



.primary-btn {

    padding: 10px 20px;

    border-radius: 8px;

    font-size: 0.85rem;

    font-weight: 600;

    background: var(--primary);

    color: #001018;

    border: none;

    cursor: pointer;

    transition: all 0.3s;

    letter-spacing: 0.5px;

}



.primary-btn:hover {

    background: var(--primary-hover);

    box-shadow: 0 8px 25px rgba(26, 199, 235, 0.35);

}



.secondary-btn {

    padding: 10px 20px;

    border-radius: 8px;

    font-size: 0.85rem;

    font-weight: 600;

    background: rgba(255, 255, 255, 0.05);

    color: var(--text-muted);

    border: 1px solid rgba(255, 255, 255, 0.1);

    cursor: pointer;

    transition: all 0.3s;

    letter-spacing: 0.5px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

}



.secondary-btn:hover {

    background: rgba(255, 255, 255, 0.1);

    color: white;

    border-color: rgba(255, 255, 255, 0.2);

}



/* Automations Grid */

.automations-list-section,

.github-repos-section,

.github-members-section {

    margin-bottom: 1.5rem;

}



.section-header {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 1rem;

}



.section-header h2 {

    font-size: 1.1rem;

    font-weight: 600;

    color: #93c5fd;

}



.badge {

    padding: 4px 15px;

    font-size: 0.95rem;

    font-weight: 600;

    border-radius: 12px;

    background: var(--blue-dark);

    color: white;

    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);

}



.automations-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));

    gap: 1.2rem;

}



/* Conteúdo dentro das caixinhas de automação */

.card-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 0.75rem;

}



.card-title {
    font-size: 0.60rem;
    font-weight: 400;
    margin-bottom: 4px;
    color: #bfdbfe;
}



.card-url {

    font-size: 0.75rem;

    color: #94a3b8;

    word-break: break-all;

    font-family: 'Monaco', 'Courier New', monospace;

}



.card-status {

    display: flex;

    align-items: center;

    gap: 4px;

    padding: 4px 10px;

    font-size: 0.7rem;

    font-weight: 600;

    border-radius: 12px;

    background: rgba(16, 185, 129, 0.15);

    color: #34d399;

    border: 1px solid rgba(16, 185, 129, 0.3);

}



.card-status::before {

    content: "●";

    font-size: 8px;

}



.card-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 1rem;

    padding-top: 0.75rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(30, 64, 175, 0.2);

    font-size: 0.75rem;

    color: #94a3b8;

}



.delete-btn,

.edit-btn {

    padding: 6px 12px;

    font-size: 0.75rem;

    font-weight: 600;

    border-radius: 6px;

    border: none;

    cursor: pointer;

    transition: all 0.2s;

}



.edit-btn {

    background: rgba(30, 64, 175, 0.2);

    color: #93c5fd;

}



.edit-btn:hover {

    background: rgba(30, 64, 175, 0.3);

    transform: translateY(-1px);

}



.delete-btn {

    background: rgba(239, 68, 68, 0.15);

    color: #fca5a5;

}



.delete-btn:hover {

    background: rgba(239, 68, 68, 0.25);

    transform: translateY(-1px);

}



/* Logs */

.logs-card {

    max-height: 250px;

    overflow: hidden;

    background: rgba(15, 23, 42, 0.7);

    /* Azul escuro mais profundo */

    border: 1px solid rgba(30, 64, 175, 0.2);

}



.logs-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 0.75rem;

    padding-bottom: 0.5rem;

    border-bottom: 1px solid rgba(30, 64, 175, 0.2);

}



.logs-header h2 {

    font-size: 1.1rem;

    font-weight: 600;

    color: #93c5fd;

}



.clear-logs-btn {

    padding: 6px 14px;

    font-size: 0.75rem;

    font-weight: 600;

    background: rgba(239, 68, 68, 0.15);

    color: #fca5a5;

    border: 1px solid rgba(239, 68, 68, 0.3);

    border-radius: 6px;

    cursor: pointer;

    transition: all 0.2s;

}



.clear-logs-btn:hover {

    background: rgba(239, 68, 68, 0.25);

}



.logs-container {

    display: flex;

    flex-direction: column;

    gap: 6px;

    max-height: 180px;

    overflow-y: auto;

    padding-right: 4px;

}



.logs-container::-webkit-scrollbar {

    width: 6px;

}



.logs-container::-webkit-scrollbar-track {

    background: rgba(30, 41, 59, 0.5);

    border-radius: 3px;

}



.logs-container::-webkit-scrollbar-thumb {

    background: rgba(30, 64, 175, 0.5);

    border-radius: 3px;

}



.log-entry {

    font-size: 0.8rem;

    padding: 8px 10px;

    border-radius: 6px;

    background: rgba(30, 41, 59, 0.5);

    border-left: 3px solid var(--primary);

    font-family: 'Monaco', 'Courier New', monospace;

}



/* Ensure images in members section are small */

.github-members-section img {

    width: 36px !important;

    height: 36px !important;

    border-radius: 50% !important;

    border: 2px solid rgba(30, 64, 175, 0.3) !important;

}



/* Cores para diferentes tipos de log */

.log-type-info {

    color: #93c5fd;

    border-left-color: var(--title-color);

}



.log-type-success {

    color: #34d399;

    border-left-color: var(--success);

}



.log-type-error {

    color: #fca5a5;

    border-left-color: var(--error);

}



.log-type-warning {

    color: #fcd34d;

    border-left-color: var(--warning);

}



/* --- New App Card Design --- */

/* Main App Card */
.app-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 290px;
}

.card-image-container {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.app-card:hover .card-image {
    transform: scale(1.1);
}



.app-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3),
        0 0 80px var(--blue-glow);
    z-index: 5;
}

/* Locked Card Styles */
.app-card.card-locked {
    cursor: default !important;
}

.app-card.card-locked:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    background: rgba(30, 41, 59, 0.4);
}

.app-card.card-locked:hover .card-image {
    transform: none;
}



.holographic-flare {

    position: absolute;

    inset: 0;

    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);

    transform: translateX(-100%);

    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);

    pointer-events: none;

}



.app-card:hover .holographic-flare {

    transform: translateX(100%);

}



.badge-featured {

    position: absolute;

    top: -1px;

    right: -1px;

    font-size: 12px;

    font-weight: 900;

    padding: 8px 16px;

    border-bottom-left-radius: 20px;

    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);

    z-index: 10;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 24px;

}



.app-icon-container {

    width: 56px;

    height: 56px;

    border-radius: 16px;



    background: rgba(26, 200, 235, 0.034);

    border: 1px solid rgba(26, 199, 235, 0.25);



    display: flex;

    align-items: center;

    justify-content: center;



    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);

    transition: all 0.3s ease;

}



.app-card:hover .app-icon-container {

    transform: scale(1.1) rotate(6deg);

}



.circuit-pattern {

    position: absolute;

    inset: 0;

    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");

    opacity: 0.1;

    mix-blend-mode: overlay;

}



.stats-column {

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.stat-box {

    display: flex;

    align-items: center;

    gap: 6px;

    background: rgba(255, 255, 255, 0.03);

    padding: 6px 10px;

    border-radius: 12px;

    border: 1px solid var(--border-color);

}



.stat-text {

    font-size: 11px;

    font-weight: 900;

    color: #e5e7eb;

}



.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    padding: 10px 10px 2px 10px;
}



.app-name {

    font-size: 18px;

    font-weight: 900;

    color: white;

    line-height: 1.2;

    text-transform: uppercase;

    font-style: italic;

    transition: color 0.3s;

}



.app-card:hover .app-name {

    color: var(--primary);

}



.app-description {

    font-size: 12px;

    color: #9ca3af;

    line-height: 1.5;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    line-clamp: 2;

    /* Standard property */

    -webkit-box-orient: vertical;

    overflow: hidden;

}



.app-card .card-footer {
    margin-top: auto;
    padding: 16px 3px 3px 3px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.app-category {

    display: flex;

    align-items: center;

    gap: 8px;

}



.category-text {

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;

    color: rgba(96, 165, 250, 0.8);

}



.status-dot-cat {

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: var(--blue-primary);

}



.status-indicator-new {

    display: flex;

    align-items: center;

    gap: 4px;

    padding: 4px 8px;

    border-radius: 8px;

    font-size: 10px;

    font-weight: 900;

    text-transform: uppercase;

    background: rgba(255, 255, 255, 0.03);

}



.status-dot-indicator {

    width: 6px;

    height: 6px;

    border-radius: 50%;

}



.status-dot-indicator.online {

    background: var(--online);

    animation: pulse 2s infinite;

    box-shadow: 0 0 5px var(--online);

}



.status-dot-indicator.offline {

    background: var(--offline);

}



.card-actions {

    position: absolute;

    top: 16px;

    right: 16px;

    display: flex;

    gap: 4px;

    z-index: 20;

    opacity: 0;

    transition: opacity 0.3s;

}



.app-card:hover .card-actions {

    opacity: 1;

}



.action-btn {

    width: 28px;

    height: 28px;

    border-radius: 8px;

    background: rgba(0, 0, 0, 0.6);

    border: 1px solid rgba(255, 255, 255, 0.1);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

}



.action-btn:hover {

    background: var(--blue-primary);

}





/* Responsive Design */

@media (max-width: 1024px) {

    .app-container {

        max-width: 100%;

        padding: 0.75rem;

    }



    .input-group {

        grid-template-columns: repeat(2, 1fr);

    }

}



@media (max-width: 768px) {

    .input-group {

        grid-template-columns: 1fr;

    }



    .header {

        flex-direction: column;

        align-items: flex-start;

        gap: 1rem;

    }



    .status-indicator {

        width: 100%;

        justify-content: center;

    }



    .automations-grid {

        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

    }

}



@media (max-width: 480px) {

    .app-container {

        padding: 0.5rem;

    }



    .header {

        align-items: center;

        text-align: center;

    }



    .logo {

        flex-direction: column;

        gap: 8px;

    }



    .logo h1 {

        font-size: 1.2rem;

    }



    .section-header h2 {

        font-size: 1rem;

    }



    .automations-grid {

        grid-template-columns: 1fr;

    }



    .glass-card {

        padding: 0.75rem;

    }



    .card-header {

        flex-wrap: wrap;

        gap: 0.5rem;

    }



    .card-footer {

        flex-wrap: wrap;

        gap: 0.5rem;

    }

}



/* TABS DE PROJETOS */

.categories-section {

    top: 0;

    z-index: 50;

    padding: 40px 0 32px;

    margin: 0 -24px 24px -24px;

    background: linear-gradient(to right, #0e0f15, #00254d);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border-top: 1px solid rgba(255, 255, 255, 0.05);

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    overflow: visible;

}



.categories-container {

    max-width: 100%;

    margin: 0 auto;

    padding: 0 24px;

    display: flex;

    gap: 24px;

    overflow-x: auto;

    padding-bottom: 16px;

    overflow-y: visible;

    padding-top: 5px
}



.categories-container::-webkit-scrollbar {

    height: 4px;

}



.categories-container::-webkit-scrollbar-track {

    background: rgba(255, 255, 255, 0.05);

    border-radius: 2px;

}



.categories-container::-webkit-scrollbar-thumb {

    background: var(--primary);

    border-radius: 2px;

}



.category-btn {

    padding: 24px 56px;

    border-radius: 28px;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 0.4em;

    text-transform: uppercase;

    transition: all 0.3s ease;

    white-space: nowrap;

    border: 1px solid rgba(255, 255, 255, 0.05);

    background: rgba(255, 255, 255, 0.02);

    color: var(--text-muted);

    cursor: pointer;

}



.category-btn:hover {

    color: var(--text-main);

    border-color: rgba(255, 255, 255, 0.2);

    transform: translateY(-4px);

}



.category-btn.active {

    background: var(--primary);

    color: white;

    border-color: var(--primary-hover);

    box-shadow: 0 10px 30px rgba(26, 199, 235, 0.25);

}


/* --- Sidebar Layout --- */
.app-container {
    display: flex;
    max-width: 100%;
    height: 100vh;
    padding: 0;
    overflow: hidden;
}

.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    width: 280px;
    background: rgba(17, 24, 39, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 2rem;
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
}

.sidebar.open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.logo-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
}

.content-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    background: linear-gradient(to right, #0e0f15, #00254d);
}

/* Header Adjustments */
.header {
    margin-bottom: 2rem;
}

/* --- Modal Styles --- */
.modal {
    background: transparent;
    border: none;
    padding: 0;
    margin: auto;
    max-width: 850px;
    /* Aumentado por padrão */
    width: 95%;
    color: var(--text-main);
}

.modal-lg {
    max-width: 1150px;
}

.modal-xl {
    max-width: 1350px;
}

.modal-sm {
    max-width: 450px;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    padding: 20px;
}

.modal-card {
    width: 100%;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: white;
}

/* Adjustments for inputs in modal */
.modal .input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Responsive Sidebar */
@media (max-width: 768px) {

    /* Sidebar as Drawer on Mobile */
    .app-container {
        flex-direction: column;
        /* Content stack */
        height: 100vh;
        overflow: hidden;
        position: relative;
    }

    .sidebar {
        /* Reset to fixed side drawer */
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        height: 100%;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 1.5rem;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: none;
        z-index: 2000;
        /* High z-index */
        background: rgba(17, 24, 39, 0.98);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-nav {
        flex-direction: column;
        width: 100%;
    }

    .content-wrapper {
        padding: 1rem;
        height: 100%;
        overflow-y: auto;
        width: 100%;
    }

    .input-group {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: row;
        /* Keep header row for hamburger + logo */
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding-top: 0.5rem;
    }

    /* Force logo to stay row on mobile */
    .logo {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .status-indicator {
        display: none;
        /* Hide on small mobile to save space, or adjust */
    }

    .automations-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    /* Hero Section Responsiveness */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1rem 0;
        width: 100%;
        max-width: 100%;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 1.5rem;
        /* Reduced size */
        line-height: 1.3;
        white-space: normal !important;
        /* Enforce wrapping */
        word-wrap: break-word;
        overflow-wrap: break-word;
        /* Standard property */
        max-width: 100%;
    }

    .hero-image {
        justify-content: center;
        margin-top: 1rem;
    }

    .hero-image img {
        max-width: 140px;
    }
}

/* --- Collapsible Grid Menu --- */
.menu-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    justify-content: flex-start;
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.chevron-icon {
    transition: transform 0.3s;
}

.menu-toggle.active .chevron-icon {
    transform: rotate(180deg);
}

.collapsible-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s;
    opacity: 0;
    padding-left: 0;
}

.collapsible-menu.open {
    max-height: 100px;
    opacity: 1;
    margin-top: 12px;
}

/* Optional: Indent or style the content inside */
.collapsible-menu .sidebar-btn {
    font-size: 0.85rem;
}

/* =========================================
   Hero Section Styles
   ========================================= */
.hero-section {
    position: relative;
    padding: 2rem 2rem;
    border-radius: 2px;
    background: radial-gradient(circle at center, rgba(26, 199, 235, 0.08) 0%, transparent 60%);
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
    text-align: center;
}

.hero-text {
    flex: 1;
    max-width: 650px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    /* White text with light glow around it */
    text-shadow: 0 0 40px rgba(26, 199, 235, 0.7);
    letter-spacing: -1px;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.9;
}

.hero-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: left;
    align-items: center;
}

.hero-image img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
    animation: float 6s ease-in-out infinite;
}

/* Decorative glow effect */
.hero-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-image img {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }
}

/* =========================================
   Footer Styles
   ========================================= */
.site-footer {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .footer-logo {
    width: 100px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
    max-width: 350px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p,
    .footer-brand .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Offline Toggle */
.offline-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.offline-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.offline-toggle-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.3);
}

/* User Management Table Styles */
.user-management-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px;
}

.user-management-table td {
    padding: 12px;
    vertical-align: middle;
}

.user-management-table select {
    background: #1e293b;
    /* Fundo escuro fixo */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.user-management-table select option {
    background: #1e293b;
    /* Fundo das opções */
    color: white;
}

.user-management-table select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 199, 235, 0.2);
}