/* ========================================
   DASHBOARD - CORES UNIEDUK
   Bot Monitoria - Página Inicial
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #032e4f 0%, #1a5575 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ========================================
   PARTÍCULAS FLUTUANTES (CORES UNIEDUK)
   ======================================== */

.particula {
    position: fixed;
    background: #dbb000;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px #dbb000;
    z-index: 1;
}

/* ========================================
   TELA DE LOGIN
   ======================================== */

.center-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    margin-bottom: 40px;
}

.logo {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.login-card h1 {
    color: #032e4f;
    font-size: 28px;
    margin-bottom: 10px;
}

.subtitle {
    color: #718096;
    font-size: 14px;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: white;
    color: #3c4043;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.google-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #4285f4;
}

.google-icon {
    width: 24px;
    height: 24px;
}

/* ========================================
   DASHBOARD
   ======================================== */

.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Header */
.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #032e4f;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-greeting {
    color: #4a5568;
    font-size: 16px;
}

.user-greeting strong {
    color: #032e4f;
}

/* Main content */
.dashboard-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 800px;
    width: 100%;
}

/* Cards */
.dashboard-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-decoration: none;
    color: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.6s ease-out backwards;
}

.dashboard-card:nth-child(1) {
    animation-delay: 0.1s;
}

.dashboard-card:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dbb000, #8a7934);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.dashboard-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #032e4f;
}

.dashboard-card p {
    color: #718096;
    font-size: 14px;
    margin-bottom: 20px;
}

.card-arrow {
    font-size: 24px;
    color: #dbb000;
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.dashboard-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Botão Sair */
.logout-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #e63946;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    transition: all 0.3s ease;
    z-index: 998;
    text-decoration: none;
}

.logout-btn:hover {
    background: #d62828;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.logout-icon {
    width: 18px;
    height: 18px;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: modalPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h2 {
    color: #032e4f;
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-content p {
    color: #4a5568;
    margin-bottom: 30px;
    font-size: 16px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-btn,
.cancel-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn {
    background: #e63946;
    color: white;
}

.confirm-btn:hover {
    background: #d62828;
    transform: translateY(-2px);
}

.cancel-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.cancel-btn:hover {
    background: #cbd5e0;
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-main {
        padding: 20px;
    }

    .logout-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .login-card {
        padding: 40px 30px;
    }

    .logo {
        font-size: 48px;
    }

    .login-card h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 16px;
    }

    .user-greeting {
        font-size: 14px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .confirm-btn,
    .cancel-btn {
        width: 100%;
    }

    .dashboard-card {
        padding: 30px 25px;
    }

    .card-icon {
        font-size: 40px;
    }
}