/* ==================================================
   ACADEMIA SINGER - MODERN STYLES
   ================================================== */

:root {
    --primary-color: #E20632;
    --primary-dark: #c0051f;
    --primary-light: #ff2951;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ==================================================
   GLOBAL STYLES
   ================================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7fa;
}

.container-fluid, .container {
    padding-left: 20px;
    padding-right: 20px;
}

/* ==================================================
   NAVIGATION CARDS
   ================================================== */
.nav-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.nav-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-card:hover::before {
    transform: scaleX(1);
}

.nav-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.nav-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.nav-card-icon i {
    color: white;
    font-size: 20px;
}

.nav-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.3;
}

.nav-card-description {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.nav-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.nav-card-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-card-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.nav-card-link:hover i {
    transform: translateX(3px);
}

/* ==================================================
   FILE ICONS
   ================================================== */
.file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
}

.file-icon-pdf { background: linear-gradient(135deg, #dc3545, #c82333); }
.file-icon-doc { background: linear-gradient(135deg, #007bff, #0056b3); }
.file-icon-xls { background: linear-gradient(135deg, #28a745, #1e7e34); }
.file-icon-ppt { background: linear-gradient(135deg, #fd7e14, #e55100); }
.file-icon-zip { background: linear-gradient(135deg, #6f42c1, #5a2d91); }
.file-icon-img { background: linear-gradient(135deg, #e83e8c, #d91a72); }
.file-icon-video { background: linear-gradient(135deg, #fd7e14, #e55100); }
.file-icon-audio { background: linear-gradient(135deg, #20c997, #17a085); }
.file-icon-txt { background: linear-gradient(135deg, #6c757d, #545b62); }
.file-icon-default { background: linear-gradient(135deg, #adb5bd, #868e96); }

/* ==================================================
   FILE LIST
   ================================================== */
.file-list {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 20px 0;
    overflow: hidden;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    transition: var(--transition);
}

.file-item:hover {
    background-color: #f8f9fa;
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    flex: 1;
    margin-left: 15px;
}

.file-name {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 4px;
    line-height: 1.3;
}

.file-meta {
    color: var(--secondary-color);
    font-size: 13px;
    display: flex;
    gap: 15px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.btn-file-action {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-view {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-view:hover {
    background: #bbdefb;
}

.btn-download {
    background: #e8f5e8;
    color: #2e7d32;
}

.btn-download:hover {
    background: #c8e6c9;
}

/* ==================================================
   BREADCRUMB
   ================================================== */
.modern-breadcrumb {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--secondary-color);
    margin: 0 10px;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* Breadcrumb moderno */
.breadcrumb-modern {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 12px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.breadcrumb-modern .breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 18px;
    font-weight: bold;
    color: rgba(255,255,255,0.8);
    margin: 0 8px;
}

.breadcrumb-modern .breadcrumb-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.breadcrumb-modern .breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
}

/* ==================================================
   HEADER STYLES
   ================================================== */
.destaque-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.destaque-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="60" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.destaque {
    position: relative;
    z-index: 1;
}

.destaque h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.destaque h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ==================================================
   ANIMATIONS
   ================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 768px) {
    .nav-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nav-card {
        padding: 20px;
    }
    
    .nav-card-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .nav-card-icon i {
        font-size: 16px;
    }
    
    .nav-card-title {
        font-size: 16px;
    }
    
    .file-item {
        padding: 12px 15px;
    }
    
    .file-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    .destaque h1 {
        font-size: 2rem;
    }
    
    .destaque h2 {
        font-size: 1.5rem;
    }
}

/* ==================================================
   UTILITIES
   ================================================== */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }

.shadow-sm { box-shadow: var(--shadow); }
.shadow { box-shadow: var(--shadow-hover); }

.rounded { border-radius: var(--border-radius); }

.transition { transition: var(--transition); }

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}