/* Main Stylesheet for 后勤服务集团餐厅安全巡查系统 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e5799 0%, #207cca 51%, #2989d8 100%);
    padding: 30px;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 420px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e5799;
    font-size: 1.8rem;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.form-group input:focus {
    outline: none;
    border-color: #1e5799;
    box-shadow: 0 0 0 3px rgba(30, 87, 153, 0.1);
    background-color: white;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: #1e5799;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: #2989d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 87, 153, 0.3);
}

.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-info {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

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

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #1a3c6c 0%, #2c5282 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 6px 0 25px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar-header {
    padding: 0 30px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.sidebar-header h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    position: relative;
    z-index: 1;
}

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

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 16px 30px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 500;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.sidebar-menu a:hover::before {
    left: 100%;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left: 4px solid #ffd700;
    transform: translateX(4px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.sidebar-menu a i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu a.active {
    background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    box-shadow: inset 4px 0 15px rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    background-color: #f8fafc;
    min-height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ecef;
}

.header h1 {
    color: #1a3c6c;
    font-size: 2.2rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Modern Responsive Header */
.modern-header {
    margin-bottom: 35px;
}

.header-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e5799 0%, #2989d8 50%, #1e5799 100%);
    border-radius: 8px 8px 0 0;
}

.brand-section h1 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1a3c6c 0%, #2989d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-section .desktop-title {
    display: block;
    font-size: 2.4rem;
    line-height: 1.2;
}

.brand-section .mobile-title {
    display: none;
    font-size: 1.8rem;
    line-height: 1.3;
}

.user-section {
    text-align: right;
}

.welcome-text {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(30, 87, 153, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(30, 87, 153, 0.2);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .header-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 24px;
        gap: 16px;
    }
    
    .brand-section .desktop-title {
        display: none;
    }
    
    .brand-section .mobile-title {
        display: block;
    }
    
    .user-section {
        text-align: center;
    }
    
    .welcome-text {
        font-size: 1rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .header-card {
        padding: 16px 20px;
        border-radius: 12px;
    }
    
    .brand-section .mobile-title {
        font-size: 1.6rem;
    }
    
    .welcome-text {
        font-size: 0.95rem;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
}

.logout-btn {
    background-color: #dc3545;
    color: white;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Cards - Modern Compact Design */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #f0f2f5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.card-header {
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 100%);
    color: white;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 20px;
}

/* Forms - Compact Modern Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-col label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    letter-spacing: -0.1px;
}

.form-col p {
    margin: 0;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #334155;
    min-height: 40px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.form-col input,
.form-col select,
.form-col textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    color: #334155;
}

.form-col input:focus,
.form-col select:focus,
.form-col textarea:focus {
    outline: none;
    border-color: #1e5799;
    box-shadow: 0 0 0 3px rgba(30, 87, 153, 0.1);
    background-color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #1a3c6c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn:hover {
    background-color: #132a4f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 60, 108, 0.3);
}

.btn-primary {
    background-color: #1a3c6c;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.95rem;
}

.data-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    color: #1a3c6c;
    border-bottom: 2px solid #e8ecef;
    padding: 18px 20px;
}

.data-table tr:hover {
    background-color: #f8fafc;
    transition: background-color 0.2s ease;
}

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

.data-table td {
    color: #4b5563;
}

/* Status Indicators - Modern Design */
.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.status-inactive {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.status-completed {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination-link {
    padding: 8px 12px;
    background-color: #1a3c6c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.pagination-link:hover {
    background-color: #132a4f;
}

.pagination-info {
    color: #6c757d;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f2f5;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a3c6c 0%, #2c5282 100%);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #e8ecef;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a3c6c;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(26, 60, 108, 0.1);
}

.stat-label {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Charts */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Inspection Items - Modern Compact Design */
.inspection-item {
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.inspection-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1e5799 0%, #2989d8 100%);
    border-radius: 2px 0 0 2px;
}

.inspection-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.inspection-item:last-child {
    margin-bottom: 0;
}

/* Correction Entries */
.correction-entry {
    margin-bottom: 20px;
}

.correction-history {
    opacity: 0.7;
}

.correction-divider {
    margin: 15px 0;
    border: 0;
    border-top: 1px dashed #ccc;
}

/* Filter Form */
.filter-form .form-row {
    margin-bottom: 0;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-info {
    background-color: #17a2b8;
}

.notification-success {
    background-color: #28a745;
}

.notification-error {
    background-color: #dc3545;
}

.notification-warning {
    background-color: #ffc107;
    color: #212529;
}

.notification-close {
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Field Errors */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.error {
    border-color: #dc3545 !important;
}

/* Password Toggle */
.password-toggle {
    cursor: pointer;
    user-select: none;
}

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

.modal-content {
    background-color: white;
    margin: 8% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8ecef;
}

.modal-header h3 {
    margin: 0;
    color: #1a3c6c;
    font-size: 1.4rem;
    font-weight: 600;
}

.modal-close {
    font-size: 1.8rem;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
}

.modal-close:hover {
    color: #475569;
    background: #e2e8f0;
    transform: rotate(90deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 60px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .sidebar.expanded {
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .sidebar-header {
        display: none;
    }
    
    .sidebar-menu {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 60px;
        padding: 0 10px;
    }
    
    .sidebar.expanded .sidebar-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 20px 15px;
        height: auto;
    }
    
    .sidebar-menu li {
        margin: 0;
    }
    
    .sidebar-menu a {
        padding: 12px 8px;
        font-size: 0.8rem;
        text-align: center;
        border-left: none;
        border-radius: 8px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 50px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .sidebar.expanded .sidebar-menu a {
        min-height: 70px;
        padding: 15px 10px;
    }
    
    .sidebar-menu a i {
        margin-right: 0;
        margin-bottom: 4px;
        font-size: 1.2rem;
    }
    
    .sidebar.expanded .sidebar-menu a i {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .sidebar-menu a:hover,
    .sidebar-menu a.active {
        transform: translateY(-2px);
        border-left: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .main-content {
        padding: 15px;
        margin-bottom: 60px;
    }
    
    /* 菜单切换按钮 */
    .menu-toggle {
        display: none;
    }
    
    .sidebar .menu-toggle {
        display: block;
        position: absolute;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 40px;
        background: linear-gradient(135deg, #1a3c6c 0%, #2c5282 100%);
        border: none;
        border-radius: 8px 8px 0 0;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    }
}
    
    .form-row {
        flex-direction: column;
        margin: 0 0 15px 0;
    }
    
    .form-col {
        min-width: 100%;
        padding: 0;
        margin-bottom: 15px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-info {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        top: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.action-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    border: 1px solid #f0f2f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a3c6c, #2989d8);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.action-card h3 {
    color: #1a3c6c;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.action-card p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.action-card .btn {
    width: auto;
    min-width: 140px;
    padding: 12px 24px;
    font-size: 0.95rem;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, #1a3c6c 0%, #2c5282 100%);
    border-radius: 16px;
    padding: 35px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(26, 60, 108, 0.2);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.welcome-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.welcome-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.welcome-card strong {
    color: #ffd700;
    font-weight: 700;
}

/* Inspection Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #fafbfc;
    transition: all 0.3s ease;
    color: #1f2937;
}

.form-control:focus {
    outline: none;
    border-color: #1a3c6c;
    box-shadow: 0 0 0 3px rgba(26, 60, 108, 0.1);
    background-color: white;
}

.form-control textarea {
    resize: vertical;
    min-height: 80px;
}

/* Inspection Items Container */
.inspection-items-container {
    margin-top: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a3c6c;
    margin-bottom: 10px;
}

.section-description {
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Record Detail Styles - Matching Inspection Page */
.form-control-static {
    display: block;
    padding: 12px 0;
    font-size: 0.95rem;
    color: #1f2937;
    border-bottom: 1px solid #f0f2f5;
}

.result-section,
.remarks-section,
.images-section,
.correction-section {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.result-label,
.remarks-label,
.images-label,
.correction-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.result-value,
.remarks-value,
.correction-value {
    margin: 0;
    font-size: 0.95rem;
    color: #1f2937;
    line-height: 1.5;
}

.images-section .image-preview-container {
    margin-top: 8px;
    background: white;
    border: 1px solid #e2e8f0;
}

/* Result Row Styles - Simplified Inline Layout */
.result-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
}

.result-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    min-height: 24px;
    justify-content: flex-start;
}

.result-item .result-label,
.result-item .remarks-label,
.result-item .correction-label {
    font-size: 0.85rem;
    color: #374151;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    min-width: 80px;
}

.result-item .result-value,
.result-item .remarks-value,
.result-item .correction-value {
    font-size: 0.85rem;
    color: #1f2937;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.result-item .correction-value .btn {
    margin: 0;
    padding: 3px 6px;
    font-size: 0.75rem;
    line-height: 1.1;
}

.result-item .remarks-value {
    max-width: none;
    word-wrap: break-word;
    white-space: normal;
}

/* Responsive adjustments - Enhanced Mobile Layout */
@media (max-width: 768px) {
    .result-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .result-item {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        padding: 6px 0;
        min-height: 24px;
        justify-content: flex-start;
    }
    
    .result-item .result-label {
        min-width: 80px;
        font-size: 0.85rem;
        font-weight: 600;
        color: #1a3c6c;
        line-height: 1.3;
        white-space: nowrap;
    }
    
    .result-item .result-value {
        flex: 1;
        font-size: 0.85rem;
        color: #374151;
        line-height: 1.3;
    }
    
    .result-item .remarks-value {
        max-width: none;
        padding: 8px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 6px;
        border-left: 3px solid #f59e0b;
    }
    
    .result-item .correction-value .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin-top: 8px;
    }
}

/* Category Section */
.category-section {
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.category-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.category-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a3c6c;
    margin: 0;
}

.category-count {
    background: #1a3c6c;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 25px;
    padding: 25px;
}

/* Inspection Item Card - Simplified Layout */
.inspection-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #1a3c6c;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: auto;
}

.inspection-item-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 0;
}

.item-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a3c6c;
    margin: 0;
    flex: 1;
    margin-right: 15px;
    line-height: 1.3;
    text-align: left;
}

.category-badge {
    background: #1a3c6c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    white-space: nowrap;
}

/* Result Content - Simplified Layout (No Internal Cards) */
.result-content {
    margin-bottom: 12px;
}

.result-label {
    display: inline;
    font-weight: 600;
    color: #1a3c6c;
    font-size: 0.85rem;
    margin-right: 5px;
}

.radio-group {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: rgba(26, 60, 108, 0.05);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #1a3c6c;
    background-color: #1a3c6c;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Remarks Section */
.remarks-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff9f5;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.remarks-label {
    display: block;
    font-weight: 600;
    color: #d97706;
    margin-bottom: 12px;
    font-size: 1rem;
}

.remarks-section textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #ffffff;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
}

.remarks-section textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Upload Section */
.upload-section {
    margin-bottom: 0;
}

.upload-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.upload-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-btn {
    align-self: flex-start;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.selected-files {
    margin-top: 5px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.8rem;
}

.file-item .filename {
    color: #374151;
}

.file-item .btn {
    padding: 2px 6px;
    font-size: 0.75rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.btn-submit, .btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.btn-submit {
    background: linear-gradient(135deg, #1a3c6c 0%, #2c5282 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 60, 108, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2c5282 0%, #3b6ea5 100%);
    box-shadow: 0 6px 20px rgba(26, 60, 108, 0.4);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 60, 108, 0.3);
}

.btn-reset {
    background: #f8fafc;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-reset:hover {
    background: #f1f5f9;
    color: #374151;
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-reset:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.btn-icon {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Inspection Cards */
.inspection-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #f0f2f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inspection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.inspection-card-header {
    padding: 18px 25px;
    background: linear-gradient(135deg, #1a3c6c 0%, #2c5282 100%);
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.inspection-card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.inspection-card-body {
    padding: 25px;
}

.inspection-item {
    padding: 18px 0;
    border-bottom: 1px solid #f0f2f5;
    transition: background-color 0.3s ease;
}

.inspection-item:hover {
    background-color: #f8fafc;
    border-radius: 6px;
    margin: 0 -10px;
    padding: 18px 10px;
}

.inspection-item:last-child {
    border-bottom: none;
}

.inspection-item label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.inspection-item textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 90px;
    resize: vertical;
    font-size: 0.95rem;
    background-color: #fafbfc;
    transition: all 0.3s ease;
    color: #1f2937;
}

.inspection-item textarea:focus {
    outline: none;
    border-color: #1a3c6c;
    box-shadow: 0 0 0 3px rgba(26, 60, 108, 0.1);
    background-color: white;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 5px;
}

/* Status Indicators */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background-color: currentColor;
    opacity: 0.7;
}

.status-pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-pending:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
}

.status-completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-completed:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.status-active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.status-inactive {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-inactive:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
    gap: 8px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #4b5563;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 42px;
    text-align: center;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination a:hover {
    background-color: #1a3c6c;
    color: white;
    border-color: #1a3c6c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 60, 108, 0.2);
}

.pagination .current {
    background: linear-gradient(135deg, #1a3c6c 0%, #2c5282 100%);
    color: white;
    border-color: #1a3c6c;
    box-shadow: 0 2px 6px rgba(26, 60, 108, 0.3);
}

.pagination .disabled {
    color: #9ca3af;
    background-color: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .disabled:hover {
    background-color: #f9fafb;
    color: #9ca3af;
    border-color: #e5e7eb;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Charts */
.chart-container {
    height: 300px;
    margin: 20px 0;
}

/* Image Upload Styles - Modern Compact Design */
.image-upload-container {
    margin-top: 12px;
}

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 8px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.image-preview-wrapper {
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease;
}

.image-preview-wrapper:hover {
    transform: translateY(-2px);
}

.image-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.image-preview:hover {
    border-color: #1a3c6c;
    box-shadow: 0 4px 12px rgba(26, 60, 108, 0.15);
    transform: scale(1.02);
}

.remove-image {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: #ef4444;
    color: white;
    border: 2px solid white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Restaurant Permissions Styles */
.permissions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e8ed;
}

.permissions-header label {
    font-weight: bold;
    color: #333;
    margin: 0;
    font-size: 1.1rem;
}

.permissions-actions {
    display: flex;
    gap: 10px;
}

.restaurant-permissions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.restaurant-checkbox-item {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.restaurant-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 180px;
    max-width: 250px;
}

.restaurant-checkbox:hover {
    border-color: #1a3c6c;
    box-shadow: 0 2px 8px rgba(26, 60, 108, 0.1);
}

.restaurant-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #ccc;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.restaurant-checkbox input[type="checkbox"]:checked {
    background-color: #1a3c6c;
    border-color: #1a3c6c;
}

.restaurant-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.restaurant-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
    gap: 8px;
}

.restaurant-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.restaurant-location {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.restaurant-checkbox input[type="checkbox"]:checked + .restaurant-label {
    color: #1a3c6c;
}

.restaurant-checkbox input[type="checkbox"]:checked + .restaurant-label .restaurant-name {
    color: #1a3c6c;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Form Text Styles */
.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
}

.text-muted {
    color: #6c757d !important;
}

/* Modal Form Styles */
.modal-content .form-group {
    margin-bottom: 25px;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.modal-content .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
    background-color: #fafbfc;
    transition: all 0.3s ease;
    color: #1f2937;
}

.modal-content .form-control:focus {
    outline: none;
    border-color: #1a3c6c;
    box-shadow: 0 0 0 3px rgba(26, 60, 108, 0.1);
    background-color: white;
    transform: translateY(-1px);
}

.modal-content .form-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8ecef;
}

/* Button Styles for Permissions */
.btn-outline-primary {
    background-color: transparent;
    color: #1a3c6c;
    border: 1px solid #1a3c6c;
}

.btn-outline-primary:hover {
    background-color: #1a3c6c;
    color: white;
}

.btn-outline-secondary {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* Current Password Display Styles */
.current-password-info {
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
}

.password-status {
    display: inline-block;
    padding: 4px 8px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Mobile Menu JavaScript Styles */
.menu-toggle {
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

/* 菜单遮罩层 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 移动端菜单展开时的样式优化 */
@media (max-width: 768px) {
    .sidebar.expanded {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.expanded .sidebar-menu a {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .sidebar.expanded .sidebar-menu a:hover {
        background: rgba(255, 255, 255, 0.25);
    }
}

/* Mobile Responsive Styles for Inspection Page */
@media (max-width: 768px) {
    /* 巡查页面主容器 */
    .inspection-container {
        padding: 10px 0;
    }
    
    /* 分类区块 */
    .category-section {
        margin-bottom: 20px;
        padding: 15px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    /* 项目网格 - 移动端单列布局 */
    .items-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
        padding: 15px 0;
        margin: 0 -5px;
    }
    
    /* 巡查项目卡片 - 移动端优化 */
    .inspection-item-card {
        min-height: auto;
        padding: 25px;
        margin: 0 5px;
        border: 1px solid #e2e8f0;
        border-left: 5px solid #1a3c6c;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        width: calc(100% - 10px);
        box-sizing: border-box;
    }
    
    .inspection-item-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    
    /* 项目标题 */
    .item-header h5 {
        font-size: 1.2rem;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #f0f2f5;
    }
    
    /* 检查结果区域 - 移动端优化 */
    .result-section {
        margin-bottom: 25px;
        padding: 20px;
        background: #f8fafc;
        border-radius: 10px;
        border-left: 5px solid #1a3c6c;
        width: 100%;
        box-sizing: border-box;
    }
    
    .result-label {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .radio-option {
        padding: 12px 15px;
        background: white;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        font-size: 1rem;
    }
    
    .radio-custom {
        width: 22px;
        height: 22px;
        margin-right: 12px;
    }
    
    /* 检查说明区域 - 移动端优化 */
    .remarks-section {
        margin-bottom: 25px;
        padding: 20px;
        background: #fff9f5;
        border-radius: 10px;
        border-left: 5px solid #f59e0b;
        width: 100%;
        box-sizing: border-box;
    }
    
    .remarks-label {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .remarks-section textarea {
        min-height: 100px;
        font-size: 1rem;
        padding: 15px;
        border-radius: 8px;
    }
    
    /* 上传区域 - 移动端优化 */
    .upload-section {
        padding: 15px;
        background: #f8fafc;
        border-radius: 10px;
        border-left: 5px solid #10b981;
        width: 100%;
        box-sizing: border-box;
    }
    
    .upload-label {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .upload-btn {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    /* 按钮区域 */
    .form-actions {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
        padding: 20px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .btn-submit, .btn-reset {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1rem;
        min-height: 50px;
    }
}

/* 超小屏幕优化（小于480px） */
@media (max-width: 480px) {
    .items-grid {
        gap: 20px;
        margin: 0 -2px;
    }
    
    .inspection-item-card {
        padding: 20px;
        margin: 0 2px;
        border: 1px solid #e2e8f0;
        border-left: 5px solid #1a3c6c;
        width: calc(100% - 4px);
    }
    
    .item-header h5 {
        font-size: 1.1rem;
    }
    
    .result-section,
    .remarks-section,
    .upload-section {
        padding: 15px;
    }
    
    .radio-option {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .btn-submit, .btn-reset {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

/* 整改项目信息表格样式 - 单行布局 */
.correction-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.correction-info-table tr {
    border-bottom: 1px solid #f0f2f5;
}

.correction-info-table tr:last-child {
    border-bottom: none;
}

.correction-info-table td {
    padding: 12px 16px;
    vertical-align: middle;
}

.correction-info-table td:first-child {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    width: 120px;
    border-right: 1px solid #e5e7eb;
    text-align: right;
}

.correction-info-table td:last-child {
    background: white;
    color: #4b5563;
    text-align: left;
}

.correction-info-table .status-active,
.correction-info-table .status-inactive,
.correction-info-table .status-pending,
.correction-info-table .status-completed {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
    .correction-info-table {
        font-size: 0.9rem;
    }
    
    .correction-info-table td {
        padding: 10px 12px;
    }
    
    .correction-info-table td:first-child {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .correction-info-table {
        font-size: 0.85rem;
    }
    
    .correction-info-table td {
        padding: 8px 10px;
    }
    
    .correction-info-table td:first-child {
        width: 80px;
    }
}

/* Mobile Bottom Navigation Styles */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a3c6c 0%, #2c5282 100%);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    height: 70px;
    box-sizing: border-box;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 2px;
    min-height: 50px;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

.mobile-bottom-nav .nav-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.mobile-bottom-nav .nav-item:hover .nav-icon,
.mobile-bottom-nav .nav-item.active .nav-icon {
    transform: scale(1.1);
}

.mobile-bottom-nav .nav-text {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
    }
    
    /* 调整主内容区域底部边距，为底部导航栏留出空间 */
    .main-content {
        margin-bottom: 80px;
    }
    
    /* 隐藏侧边栏，使用底部导航栏 */
    .sidebar {
        display: none;
    }
}

