/* ========================================
   INSTITUTO MEGA - ESTILOS CSS
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-style: italic;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-info i {
    color: var(--secondary-color);
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Login Form */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.login-container h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2rem;
}

.login-container p {
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

/* Student Profile */
.profile-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    text-align: center;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    margin: 0 auto 20px;
    object-fit: cover;
}

.profile-info {
    padding: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
}

.info-item label {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.info-item span {
    color: #666;
}

/* Document Upload */
.documents-section {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.document-item {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s ease;
}

.document-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.document-name {
    font-weight: 600;
    color: var(--primary-color);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pendente {
    background: #ffebee;
    color: var(--danger-color);
}

.status-entregue {
    background: #e8f5e8;
    color: var(--success-color);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.05);
}

.upload-area.dragover {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
}

/* Payment Section */
.payments-section {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.payments-table th,
.payments-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.payments-table th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--primary-color);
}

.payments-table tr:hover {
    background: #f8f9fa;
}

/* Dashboard */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.dashboard-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.dashboard-card p {
    color: #666;
    font-weight: 600;
}

.card-primary i { color: var(--primary-color); }
.card-success i { color: var(--success-color); }
.card-warning i { color: var(--warning-color); }
.card-danger i { color: var(--danger-color); }

/* Admin Panel */
.admin-sidebar {
    background: var(--primary-color);
    color: white;
    width: 250px;
    min-height: 100vh;
    padding: 20px 0;
    position: fixed;
    left: -250px;
    transition: left 0.3s ease;
    z-index: 1000;
}

.admin-sidebar.active {
    left: 0;
}

.admin-main {
    margin-left: 0;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.admin-main.sidebar-active {
    margin-left: 250px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu li a i {
    margin-right: 10px;
    width: 20px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: var(--success-color);
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: var(--danger-color);
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: var(--warning-color);
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: var(--secondary-color);
    color: #0c5460;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .login-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .contact-info {
        font-size: 0.9rem;
    }

    .admin-main.sidebar-active {
        margin-left: 0;
    }

    .admin-sidebar {
        width: 100%;
        left: -100%;
    }

    .admin-sidebar.active {
        left: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .login-container {
        margin: 10px;
        padding: 20px 15px;
    }

    .profile-header {
        padding: 20px;
    }

    .profile-photo {
        width: 80px;
        height: 80px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}


/* Seção de Características */
.characteristics-section {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 30px;
}

.characteristics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.characteristic-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .characteristic-icon {
    transform: scale(1.1);
}

.characteristic-icon.courses {
    background: #3498db;
}

.characteristic-icon.teachers {
    background: #27ae60;
}

.characteristic-icon.certification {
    background: #f39c12;
}

.characteristic-title {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.characteristic-description {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Responsividade para a seção de características */
@media (max-width: 768px) {
    .characteristics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 20px;
    }
    
    .feature-card {
        padding: 15px 10px;
    }
    
    .characteristic-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .characteristic-title {
        font-size: 1rem;
    }
    
    .characteristic-description {
        font-size: 0.85rem;
    }
}

