/* ========================================
   Modern Reporting System CSS
   ======================================== */

/* === RESET & GENERAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --sidebar-bg: #1a1d2e;
    --sidebar-hover: #252a3f;
    --topbar-bg: #ffffff;
    --content-bg: #f7f8fc;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --info: #4299e1;
    --yellow: #f6ad55;
    --cyan: #0bc5ea;
    --green: #48bb78;
    --purple: #9f7aea;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--content-bg);
}

/* === LOGIN PAGE === */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #00bcd4;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    color: #999;
    font-size: 12px;
}

.login-form {
    width: 100%;
}

/* === DASHBOARD LAYOUT === */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: white;
}

.nav-item.active {
    background: var(--sidebar-hover);
    color: white;
    border-left-color: var(--primary);
}

.nav-item svg {
    flex-shrink: 0;
}

/* Dropdown Navigation */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown .dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.nav-item-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-item-dropdown > .nav-item {
    cursor: pointer;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.2);
}

.nav-item-dropdown.active .submenu {
    max-height: 500px;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 52px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 13px;
}

.submenu-item:hover {
    background: var(--sidebar-hover);
    color: white;
}

.submenu-item.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.submenu-item svg {
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.user-role {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === TOPBAR === */
.topbar {
    background: var(--topbar-bg);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: var(--content-bg);
}

.welcome-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    position: relative;
    background: var(--content-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: var(--border-color);
}

.badge-notification {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-logout-new {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--danger);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-logout-new:hover {
    background: #e53e3e;
    transform: translateY(-2px);
}

/* === CONTENT WRAPPER === */
.content-wrapper {
    flex: 1;
    padding: 32px;
}

.page-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-text {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon-yellow {
    background: linear-gradient(135deg, #f6ad55, #ed8936);
}

.stat-icon-cyan {
    background: linear-gradient(135deg, #0bc5ea, #00b4d8);
}

.stat-icon-green {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.stat-icon-purple {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
}

/* === DASHBOARD SECTIONS === */
.dashboard-content {
    display: grid;
    gap: 24px;
}

.dashboard-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dashboard-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* === TABLES === */
.table-container {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--content-bg);
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--content-bg);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #dd6b20;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn-info {
    background: var(--info);
    color: white;
}

.btn-info:hover {
    background: #3182ce;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-link {
    color: var(--primary);
    background: transparent;
    padding: 8px 12px;
    font-weight: 500;
}

.btn-link:hover {
    background: var(--content-bg);
}

.btn-block {
    width: 100%;
    display: block;
}

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-active {
    background: #d4f4dd;
    color: #22543d;
}

.badge-inactive {
    background: #fed7d7;
    color: #742a2a;
}

.badge-draft {
    background: #feebc8;
    color: #7c2d12;
}

.badge-published {
    background: #d4f4dd;
    color: #22543d;
}

.badge-info {
    background: #bee3f8;
    color: #2c5282;
}

.badge-archived {
    background: #e2e8f0;
    color: #4a5568;
}

.badge-present {
    background: #d4f4dd;
    color: #22543d;
}

.badge-absent {
    background: #fed7d7;
    color: #742a2a;
}

/* === FORMS === */
.form-container {
    background: var(--card-bg);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: var(--topbar-bg);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* === ALERTS === */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4f4dd;
    color: #22543d;
    border-left: 4px solid #48bb78;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #f56565;
}

/* === NO DATA === */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-data p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .topbar {
        padding: 12px 20px;
    }
    
    .welcome-text {
        font-size: 16px;
    }
    
    .btn-logout-new span {
        display: none;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* === FORM ROWS === */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.col-md-4 {
    flex: 0 0 calc(33.333% - 14px);
}

.col-md-6 {
    flex: 0 0 calc(50% - 10px);
}

.col-md-8 {
    flex: 0 0 calc(66.666% - 14px);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .col-md-4, .col-md-6, .col-md-8 {
        flex: 1 1 100%;
    }
}

/* === PAGE ACTIONS === */
.page-actions {
    display: flex;
    gap: 12px;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

/* === ACTIONS COLUMN === */
td.actions {
    white-space: nowrap;
}

td.actions .btn {
    margin-right: 4px;
}

/* === VIEW CONTAINER === */
.view-container {
    display: grid;
    gap: 20px;
}

.info-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.info-card h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
}

.info-card h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.files-list {
    margin-top: 20px;
}

.notes-list {
    margin-top: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    padding: 12px 0;
}

.info-item label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.info-item span {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
}

.content-box {
    background: var(--content-bg);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

/* === CHECKBOXES === */
.attendees-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--content-bg);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.attendees-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.attendee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--content-bg);
    border-radius: 8px;
}

.attendee-name {
    font-weight: 500;
}

/* === MODULE VIEW PAGE === */
.module-view-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    margin-top: 24px;
}

.module-info-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 24px;
}

.module-info-card {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.module-info-card label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.module-info-card span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.note-item {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.note-content {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.note-author {
    font-size: 13px;
    color: var(--text-secondary);
}

.note-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.note-actions {
    display: flex;
    gap: 6px;
}

.btn-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-icon-sm:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.btn-icon-sm.btn-icon-danger:hover {
    background: var(--danger);
    border-color: var(--danger);
}

.note-view {
    width: 100%;
}

.note-edit {
    width: 100%;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    gap: 16px;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.file-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 0;
}

.file-ext {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
}

.file-ext.pdf { background: #fed7d7; color: #c53030; }
.file-ext.doc, .file-ext.docx { background: #bee3f8; color: #2c5282; }
.file-ext.xls, .file-ext.xlsx { background: #c6f6d5; color: #22543d; }
.file-ext.jpg, .file-ext.jpeg, .file-ext.png, .file-ext.gif { background: #feebc8; color: #7c2d12; }
.file-ext.ppt, .file-ext.pptx { background: #fbd38d; color: #744210; }

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.file-size {
    font-size: 12px;
    color: var(--text-secondary);
}

.file-actions {
    display: flex;
    gap: 8px;
}

.stats-mini {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-bottom: 16px;
}

.stats-mini-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stats-mini-label {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 500;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-icon:hover {
    background: var(--content-bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-icon i {
    font-size: 15px;
}

.meeting-list-item {
    background: var(--card-bg);
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.meeting-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.meeting-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.meeting-date {
    font-size: 12px;
    color: var(--text-secondary);
}

#uploadForm {
    display: none;
}

.file-thumbnail {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px;
    max-height: 50px;
    min-width: 50px;
    min-height: 50px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
    display: block;
}

.file-thumbnail:hover {
    transform: scale(1.05);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    width: 500px !important;
    height: 350px !important;
    max-width: 500px !important;
    max-height: 350px !important;
    min-width: 500px !important;
    min-height: 350px !important;
    object-fit: contain !important;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    background: #000;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.image-modal-close:hover {
    color: #f56565;
    transform: rotate(90deg);
}

.image-modal-caption {
    margin-top: 20px;
    text-align: center;
    color: #fff;
    font-size: 16px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    max-width: 80%;
}

/* Document Viewer */
.document-viewer-container {
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    max-height: 800px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.document-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Responsive for module view */
@media (max-width: 1024px) {
    .module-view-grid {
        grid-template-columns: 1fr;
    }
    
    .module-info-header {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .module-info-header {
        grid-template-columns: 1fr;
    }
    
    .image-modal-content {
        width: 90% !important;
        max-width: 500px !important;
        height: auto !important;
        max-height: 350px !important;
        min-width: auto !important;
        min-height: auto !important;
    }
    
    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 36px;
    }
}

/* === CONTAINER FOR OLD LAYOUT COMPATIBILITY === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}
