/* Modern Flat White Theme - Responsive Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --sidebar-width: 260px;
    --topbar-height: 70px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    font-size: 20px;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Mobile Sidebar Backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-color);
    color: white;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 13px;
    opacity: 0.9;
}

.nav-menu {
    list-style: none;
    padding: 16px 12px;
}

.nav-menu li {
    margin-bottom: 4px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-menu a i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    color: var(--text-light);
}

.nav-menu a:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.nav-menu a:hover i {
    color: var(--primary-color);
}

.nav-menu a.active {
    background: #eff6ff;
    color: var(--primary-color);
}

.nav-menu a.active i {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    background: var(--bg-gray);
    overflow-x: hidden;
    width: calc(100% - var(--sidebar-width));
    max-width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Content Wrapper */
.content-wrapper {
    padding: 0;
    max-width: 100%;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    flex: 1;
}

/* Topbar */
.topbar {
    background: var(--bg-white);
    padding: 0;
    margin: 0 0 20px 0;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    overflow: hidden;
}

.topbar h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 0 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin: 16px 0;
    overflow: hidden;
    width: 100%;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--primary-color);
}

.card form,
.card > p,
.card > div:not(.card-header) {
    padding: 24px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
}

.stat-card {
    background: var(--bg-white);
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    min-height: 80px;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-icon.blue {
    background: #eff6ff;
    color: var(--primary-color);
}

.stat-icon.green {
    background: #f0fdf4;
    color: var(--success-color);
}

.stat-icon.purple {
    background: #faf5ff;
    color: #a855f7;
}

.stat-icon.orange {
    background: #fff7ed;
    color: var(--warning-color);
}

.stat-details h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-details p {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Student Info Grid */
.student-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input:disabled {
    background: var(--bg-gray);
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-height: 44px; /* Touch-friendly */
    justify-content: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
}

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

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

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

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    padding: 24px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: auto;
}

thead {
    background: var(--bg-gray);
}

th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--bg-gray);
}

/* Alerts */
.alert {
    padding: 16px 20px;
    margin: 24px 32px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fed7aa;
    color: #92400e;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px !important;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close {
    color: var(--text-light);
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text-dark);
}

.modal form {
    padding: 24px;
}

/* Profile Container */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 32px;
}

/* Mobile/Desktop Visibility Classes */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Mobile Grade Cards */
.grade-card-mobile {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.grade-card-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.grade-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.grade-card-header .subject-code {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.grade-card-header .faculty-name {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.grade-card-header .faculty-name i {
    font-size: 10px;
}

.grade-card-body {
    padding: 16px;
}

.grade-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.grade-item {
    text-align: center;
}

.grade-label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.grade-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.grade-card-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.grade-card-footer small {
    color: var(--text-light);
    font-size: 12px;
}

/* Semester Headers for Mobile */
.semester-header-mobile {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 20px 0 12px 0;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.semester-header-mobile i {
    font-size: 16px;
}

.semester-average-mobile {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.semester-average-mobile span {
    color: var(--text-dark);
    font-weight: 500;
}

.semester-average-mobile strong {
    font-size: 18px;
}

/* Print Styles */
@media print {
    .sidebar,
    .topbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    body {
        background: white;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
        --topbar-height: 60px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        max-width: 80vw;
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .content-wrapper {
        padding: 12px;
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
    
    .topbar {
        padding: 0;
        height: 60px;
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .topbar h1 {
        font-size: 16px;
        padding: 0 12px;
    }
    
    .user-info {
        padding: 0 12px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
        gap: 0;
        margin: 0;
    }
    
    .stat-card {
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
    
    .stat-card:nth-child(even) {
        border-right: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    .card {
        border-radius: 8px;
        margin: 0 0 12px 0;
        border: 1px solid var(--border-color);
        width: 100%;
    }
    
    .card form,
    .card > p,
    .card > div:not(.card-header) {
        padding: 12px 16px;
    }
    
    /* Optimize Student Info Grid for Mobile */
    .student-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .info-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px;
        background: var(--bg-gray);
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }
    
    .info-label {
        font-size: 11px;
        flex-shrink: 0;
        width: 100px;
    }
    
    .info-value {
        font-size: 14px;
        text-align: right;
        word-break: break-word;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -12px;
        padding: 0 12px;
    }
    
    table {
        font-size: 11px;
        min-width: 600px;
    }
    
    th, td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    th {
        font-size: 10px;
        text-transform: uppercase;
    }
    
    .card-header {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .card-header h2 {
        font-size: 15px;
    }
    
    .card-header .btn,
    .card-header a.btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .btn-sm {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .alert {
        margin: 12px;
        padding: 12px;
        font-size: 13px;
    }
    
    .user-info div {
        display: none;
    }
    
    .profile-container {
        padding: 12px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 16px;
    }
    
    .stat-card {
        padding: 10px;
        gap: 8px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin: 0 auto;
    }
    
    .stat-info h3 {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .stat-info p {
        font-size: 20px;
        font-weight: 700;
    }
    
    .badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Better touch targets */
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .stat-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Improve readability */
    body {
        font-size: 14px;
    }
    
    p {
        line-height: 1.5;
    }
    
    /* Mobile/Desktop visibility */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
        top: 15px !important;
        right: 15px !important;
        left: auto !important;
    }
    
    .sidebar {
        width: 260px;
        max-width: 85vw;
    }
    
    .content-wrapper {
        padding: 8px;
    }
    
    .topbar {
        padding: 0 60px 0 8px;
        height: 56px;
    }
    
    .topbar h1 {
        font-size: 14px;
    }
    
    .card {
        border-radius: 6px;
        margin-bottom: 10px;
    }
    
    .card-header {
        padding: 10px;
    }
    
    .card-header h2 {
        font-size: 14px;
    }
    
    .card form,
    .card > p,
    .card > div:not(.card-header) {
        padding: 10px;
    }
    
    /* Extra compact student info for small phones */
    .student-info-grid {
        gap: 10px;
        padding: 12px;
    }
    
    .info-item {
        padding: 10px;
    }
    
    .info-label {
        font-size: 10px;
        width: 85px;
    }
    
    .info-value {
        font-size: 13px;
    }
    
    .stat-card {
        padding: 12px;
        gap: 10px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stat-info h3 {
        font-size: 11px;
    }
    
    .stat-info p {
        font-size: 18px;
    }
    
    table {
        font-size: 10px;
    }
    
    th, td {
        padding: 6px 4px;
    }
    
    .btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .login-card {
        padding: 24px;
    }
    
    .login-card h1 {
        font-size: 22px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

/* Login Page Specific */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg-gray);
}

.login-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-color);
}

.login-card h1 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 28px;
    color: var(--text-dark);
}

.login-card p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 14px;
}

.login-card .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    color: #999;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .form-actions {
        padding: 12px 16px;
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
