/* ============================================
   MPowerF Valentine's Day - Modern Mobile-Friendly UI
   ============================================ */

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-page .card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 450px;
    width: 100%;
}

/* Logo Styles */
.login-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.login-logo {
    max-width: 150px;
    max-height: 80px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.admin-logo {
    max-width: 80px;
    max-height: 40px;
    height: auto;
    object-fit: contain;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.form-logo {
    max-width: 100px;
    max-height: 50px;
    height: auto;
    object-fit: contain;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-actions .btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.admin-actions .btn-primary.btn-sm {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.admin-actions .btn-primary.btn-sm:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.admin-actions .btn-success.btn-sm {
    background: #27ae60;
    color: white;
    border: none;
}

.admin-actions .btn-success.btn-sm:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    color: white;
}

.admin-actions .btn-secondary.btn-sm {
    background: rgba(108, 117, 125, 0.9);
    color: white;
    border: none;
}

.admin-actions .btn-secondary.btn-sm:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: white;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.form-header h3 {
    margin: 0;
    color: #667eea;
}

/* Logo hover effects */
.login-logo,
.admin-logo,
.form-logo {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.login-logo:hover,
.admin-logo:hover,
.form-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.login-page .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.login-page .form-control:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-default:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.bottom-msg {
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.support-info a {
    color: white;
    text-decoration: underline;
}

/* Form Page Styles */
.super-container {
    min-height: 100vh;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
}

.card h3 {
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.welcome-message {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.welcome-message p {
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
}

.welcome-message p:last-child {
    margin-bottom: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label.required::after {
    content: " *";
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Custom File Upload Button */
.custom-file-upload {
    position: relative;
    margin-top: 8px;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: none;
    font-weight: 600;
    font-size: 15px;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.file-label:active {
    transform: translateY(0);
}

.file-label i {
    font-size: 18px;
    margin-right: 10px;
}

.file-text {
    flex: 1;
    text-align: left;
}

.file-name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 14px;
    margin-left: 15px;
    font-style: italic;
}

.file-input:focus + .file-label {
    outline: 3px solid rgba(102, 126, 234, 0.3);
    outline-offset: 2px;
}

.file-input:valid + .file-label .file-name {
    color: #fff;
    font-weight: 500;
    font-style: normal;
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

/* File Upload Styles */
.upload-area {
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
}

.upload-area:hover {
    background: #f0f2ff;
    border-color: #764ba2;
}

.upload-area.dragover {
    background: #e8ebff;
    border-color: #764ba2;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 10px;
}

.upload-text {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
}

.upload-hint {
    color: #999;
    font-size: 13px;
}

/* Upload Status */
.upload-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    background: #f8f9ff;
    border-radius: 8px;
}

.upload-status .spinner-border-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* Photo Preview */
.photo-preview {
    margin-top: 15px;
    text-align: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid #667eea;
}

.photo-preview .success-message {
    color: #27ae60;
    font-weight: 600;
    margin-top: 10px;
    font-size: 14px;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    width: 100%;
    margin-bottom: 12px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-submit {
    margin-bottom: 12px;
}

.btn-view {
    margin-top: 0;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
    color: white;
    transform: translateY(-2px);
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #27ae60;
    color: #155724;
}

/* Admin Panel Styles */
.admin-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-header h2 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.3px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-actions .btn {
    white-space: nowrap;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8f9ff;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
}

.table img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .super-container {
        padding: 10px;
    }

    .card {
        padding: 20px;
        border-radius: 12px;
    }

    .card h3 {
        font-size: 20px;
    }

    .file-label {
        padding: 12px 16px;
        font-size: 14px;
        flex-wrap: wrap;
    }

    .file-label i {
        font-size: 16px;
        margin-right: 8px;
    }

    .file-name {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
        font-size: 12px;
    }

    .login-logo {
        max-width: 120px;
        max-height: 60px;
    }

    .login-title {
        font-size: 24px;
    }

    .admin-logo {
        max-width: 60px;
        max-height: 30px;
        margin-right: 8px;
    }

    .form-logo {
        max-width: 80px;
        max-height: 40px;
        margin-right: 10px;
    }

    .admin-header {
        padding: 12px 15px;
    }

    .admin-header-left {
        gap: 8px;
    }

    .admin-header h2 {
        font-size: 18px;
    }

    .admin-actions {
        width: 100%;
        margin-top: 10px;
    }

    .admin-actions .btn-sm {
        flex: 1;
        min-width: 100px;
    }

    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .welcome-message {
        padding: 15px;
    }

    .welcome-message p {
        font-size: 14px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-header h2 {
        font-size: 24px;
    }

    .admin-actions {
        width: 100%;
    }

    .admin-actions .btn {
        flex: 1;
        min-width: 120px;
    }

    .table {
        font-size: 14px;
    }

    .table thead th {
        padding: 10px 8px;
        font-size: 12px;
    }

    .table tbody td {
        padding: 10px 8px;
    }

    .table img {
        max-width: 60px;
        max-height: 60px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .login-page .card {
        padding: 30px 20px;
    }

    .wof-logo {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 15px;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .table {
        font-size: 12px;
    }

    .table thead th,
    .table tbody td {
        padding: 8px 5px;
    }

    .admin-actions {
        flex-direction: column;
    }

    .admin-actions .btn {
        width: 100%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-danger {
    color: #e74c3c;
}

.text-success {
    color: #27ae60;
}

.text-muted {
    color: #999;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-4 {
    margin-bottom: 20px;
}

.mr-2 {
    margin-right: 10px;
}

/* ============================================
   Professional Admin Panel Styles
   ============================================ */

/* Modern Admin Header */
.admin-header-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.admin-title-section {
    color: white;
}

.admin-main-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: white;
    letter-spacing: -0.5px;
}

.admin-subtitle {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.admin-actions-modern {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-admin {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-admin i {
    font-size: 16px;
}

.btn-add {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-add:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-export {
    background: #27ae60;
    color: white;
}

.btn-export:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    color: white;
}

.btn-logout {
    background: rgba(108, 117, 125, 0.9);
    color: white;
}

.btn-logout:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    color: white;
}

/* Statistics Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-total {
    border-left-color: #667eea;
}

.stat-approved {
    border-left-color: #27ae60;
}

.stat-pending {
    border-left-color: #f39c12;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.stat-total .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-approved .stat-icon {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.stat-pending .stat-icon {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Alerts */
.alert-success-modern,
.alert-danger-modern {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

.alert-success-modern {
    background: #d4edda;
    border-left-color: #27ae60;
    color: #155724;
}

.alert-danger-modern {
    background: #f8d7da;
    border-left-color: #e74c3c;
    color: #721c24;
}

.alert-success-modern i,
.alert-danger-modern i {
    font-size: 20px;
}

/* Admin Card Modern */
.admin-card-modern {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.card-header-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 30px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title-modern {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title-modern i {
    color: #667eea;
    font-size: 22px;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-count {
    background: #667eea;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.card-body-modern {
    padding: 0;
}

/* Modern Table */
.table-responsive-modern {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
}

.table-modern thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table-modern thead th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    white-space: nowrap;
}

.table-modern thead th i {
    margin-right: 8px;
    opacity: 0.9;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.table-modern tbody tr:hover {
    background: #f8f9ff;
    transform: scale(1.001);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.table-modern tbody td {
    padding: 18px 20px;
    vertical-align: middle;
    border: none;
    color: #2c3e50;
}

.td-id {
    font-weight: 600;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

.td-name {
    font-weight: 600;
    color: #2c3e50;
}

.td-date {
    color: #7f8c8d;
    font-size: 14px;
}

.date-display {
    display: flex;
    flex-direction: column;
}

.date-main {
    font-weight: 500;
    color: #2c3e50;
}

.date-time {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 2px;
}

/* Badges Modern */
.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-approved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.badge-modern i {
    font-size: 11px;
}

/* Photo Status */
.photo-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    width: fit-content;
}

.photo-full,
.photo-shoulder {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.photo-missing {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Action Buttons Modern */
.action-buttons-modern {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-edit {
    background: #667eea;
    color: white;
}

.btn-edit:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    color: white;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.empty-content i {
    font-size: 64px;
    color: #bdc3c7;
}

.empty-content p {
    font-size: 18px;
    color: #7f8c8d;
    margin: 0;
}

/* Modern Modal */
.modal-modern {
    max-width: 500px;
}

.modal-content-modern {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 30px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-icon-danger {
    width: 50px;
    height: 50px;
    background: #fee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    font-size: 24px;
}

.modal-title-modern {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.close-modern {
    background: none;
    border: none;
    font-size: 28px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-modern:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.modal-body-modern {
    padding: 30px;
}

.modal-text {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #856404;
}

.modal-warning i {
    font-size: 20px;
    margin-top: 2px;
}

.modal-footer-modern {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e9ecef;
}

.btn-modal {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: white;
}

.btn-confirm-delete {
    background: #e74c3c;
    color: white;
}

.btn-confirm-delete:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-header-modern {
        padding: 20px;
    }

    .admin-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-main-title {
        font-size: 22px;
    }

    .admin-actions-modern {
        width: 100%;
    }

    .btn-admin {
        flex: 1;
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .table-modern thead th,
    .table-modern tbody td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .table-modern thead th {
        font-size: 11px;
    }

    .action-buttons-modern {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
    }
}

/* ============================================
   Sidebar Admin Panel Styles
   ============================================ */

.admin-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f6fa;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-align: center;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
    font-size: 14px;
}

.nav-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 16px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #667eea;
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    border-left-color: #667eea;
}

.nav-item-form {
    margin: 0;
    padding: 0;
}

.nav-item-logout {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
}

.nav-item-logout:hover {
    background: rgba(231, 76, 60, 0.2);
    border-left-color: #e74c3c;
    color: white;
}

/* Main Content */
.admin-main {
    margin-left: 250px;
    flex: 1;
    min-height: 100vh;
    background: #f5f6fa;
}

.admin-content {
    padding: 30px;
}

.page-header {
    margin-bottom: 25px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Alerts */
.alert-success-sidebar,
.alert-danger-sidebar {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success-sidebar {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #27ae60;
}

.alert-danger-sidebar {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

/* Action Bar */
.action-bar {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-bar-left,
.action-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-action-primary {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.btn-action-primary:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-action-secondary {
    background: #6c757d;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-action-secondary:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-1px);
}

.per-page-selector,
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.per-page-selector label,
.search-box label {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    margin: 0;
}

.form-control-sm {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

/* Card Sidebar */
.card-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* Table Container */
.table-container-sidebar {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-sidebar {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table-sidebar thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table-sidebar thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

.table-sidebar tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.table-sidebar tbody tr:hover {
    background: #f8f9ff;
}

.table-sidebar tbody td {
    padding: 15px;
    vertical-align: middle;
    color: #495057;
    font-size: 14px;
}

/* Pagination Wrapper */
.pagination-wrapper {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
}

.pagination-wrapper nav {
    width: 100%;
}

.pagination-wrapper .pagination {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
    border-radius: 4px;
    justify-content: center;
    margin: 0;
    gap: 5px;
}

.pagination-wrapper .pagination {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    gap: 5px;
}

.pagination-wrapper .page-item {
    margin: 0;
}

.pagination-wrapper .page-link {
    color: #667eea;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    min-width: 36px;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
}

.pagination-wrapper .page-link:hover {
    color: #5568d3;
    background-color: #f8f9ff;
    border-color: #667eea;
    text-decoration: none;
}

.pagination-wrapper .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.pagination-wrapper .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Fix SVG icons in pagination */
.pagination-wrapper .page-link svg {
    width: 16px !important;
    height: 16px !important;
    vertical-align: middle;
}

.pagination-wrapper .page-link[rel="prev"],
.pagination-wrapper .page-link[rel="next"] {
    padding: 8px 12px;
    font-size: 14px;
}

/* Hide large icons, show text instead or smaller icons */
.pagination-wrapper .page-link[aria-label*="previous"],
.pagination-wrapper .page-link[aria-label*="next"] {
    font-size: 14px;
}

.pagination-wrapper .page-link[aria-label*="previous"] svg,
.pagination-wrapper .page-link[aria-label*="next"] svg {
    width: 14px !important;
    height: 14px !important;
    margin: 0 4px;
}

/* Bootstrap pagination overrides */
.pagination-wrapper .pagination .page-item .page-link {
    line-height: 1.5;
    padding: 8px 12px;
}

/* Ensure icons are properly sized */
.pagination-wrapper svg {
    display: inline-block;
    width: 14px !important;
    height: 14px !important;
    vertical-align: middle;
}

/* Fix for Laravel pagination default views */
.pagination-wrapper nav[role="navigation"] {
    display: flex;
    justify-content: center;
}

.pagination-wrapper .flex {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-wrapper .relative {
    display: inline-flex;
    align-items: center;
}

.pagination-wrapper .inline-flex {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #667eea;
    background: white;
    transition: all 0.2s ease;
    min-width: 36px;
    justify-content: center;
}

.pagination-wrapper .inline-flex:hover {
    background-color: #f8f9ff;
    border-color: #667eea;
    color: #5568d3;
    text-decoration: none;
}

.pagination-wrapper .inline-flex.cursor-default {
    color: #6c757d;
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-wrapper .inline-flex svg {
    width: 14px !important;
    height: 14px !important;
    margin: 0 4px;
}

.pagination-wrapper .shadow-sm {
    box-shadow: none !important;
}

.pagination-wrapper .rounded-md {
    border-radius: 4px;
}

.pagination-wrapper .rounded-l-md {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination-wrapper .rounded-r-md {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Force proper Bootstrap pagination styling */
.pagination-wrapper .pagination {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
    border-radius: 4px;
}

.pagination-wrapper .pagination .page-item {
    list-style: none;
    margin: 0;
}

.pagination-wrapper .pagination .page-item .page-link {
    position: relative;
    display: block;
    padding: 8px 12px;
    margin-left: -1px;
    line-height: 1.5;
    color: #667eea;
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    min-width: 38px;
    text-align: center;
    transition: all 0.2s ease;
}

.pagination-wrapper .pagination .page-item .page-link:hover {
    z-index: 2;
    color: #5568d3;
    text-decoration: none;
    background-color: #f8f9ff;
    border-color: #667eea;
}

.pagination-wrapper .pagination .page-item .page-link:focus {
    z-index: 2;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.pagination-wrapper .pagination .page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination-wrapper .pagination .page-item:last-child .page-link {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination-wrapper .pagination .page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #667eea;
    border-color: #667eea;
}

.pagination-wrapper .pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    opacity: 0.6;
}

.pagination-wrapper .pagination .page-link i {
    font-size: 12px;
    vertical-align: middle;
}

.pagination-wrapper .pagination .page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination-wrapper .pagination .page-item:last-child .page-link {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Ensure all SVG icons are small */
.pagination-wrapper * svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
}

/* Text-based pagination links */
.pagination-wrapper a[href*="page="],
.pagination-wrapper span[aria-current="page"] {
    padding: 8px 12px;
    font-size: 14px;
    display: inline-block;
    min-width: 36px;
    text-align: center;
}

/* Hide oversized icons in pagination */
.pagination-wrapper .w-5,
.pagination-wrapper .h-5 {
    width: 14px !important;
    height: 14px !important;
}

.pagination-wrapper .text-sm {
    font-size: 14px;
}

.pagination-wrapper .font-medium {
    font-weight: 500;
}

.checkbox-select {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.td-id {
    font-weight: 600;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

.td-name {
    font-weight: 600;
    color: #2c3e50;
}

/* Badges */
.badge-sidebar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-approved-sidebar {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-pending-sidebar {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Photo Status */
.photo-status-sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-badge-sidebar {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    width: fit-content;
}

.photo-ok {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.photo-missing {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Date Display */
.date-display-sidebar {
    display: flex;
    flex-direction: column;
}

.date-time-small {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 2px;
}

/* Action Buttons */
.action-buttons-sidebar {
    display: flex;
    gap: 8px;
}

.btn-view-sidebar,
.btn-delete-sidebar {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-sidebar {
    background: #667eea;
    color: white;
}

.btn-view-sidebar:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-delete-sidebar {
    background: #e74c3c;
    color: white;
}

.btn-delete-sidebar:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    color: white;
}

/* Empty State */
.empty-state-sidebar {
    padding: 60px 20px;
    text-align: center;
}

.empty-content-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.empty-content-sidebar i {
    font-size: 64px;
    color: #bdc3c7;
}

.empty-content-sidebar p {
    font-size: 18px;
    color: #7f8c8d;
    margin: 0;
}

/* Modal Sidebar */
.modal-content-sidebar {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header-sidebar {
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-sidebar {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-sidebar:hover {
    background: #f0f0f0;
    color: #2c3e50;
}

.modal-body-sidebar {
    padding: 25px;
}

.modal-footer-sidebar {
    padding: 15px 25px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-modal-cancel,
.btn-modal-delete {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-cancel {
    background: #6c757d;
    color: white;
}

.btn-modal-cancel:hover {
    background: #5a6268;
    color: white;
}

.btn-modal-delete {
    background: #e74c3c;
    color: white;
}

.btn-modal-delete:hover {
    background: #c0392b;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 70px;
    }

    .sidebar-title {
        font-size: 12px;
    }

    .nav-item span {
        display: none;
    }

    .admin-main {
        margin-left: 70px;
    }

    .admin-content {
        padding: 15px;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .action-bar-left,
    .action-bar-right {
        width: 100%;
        justify-content: space-between;
    }

    .table-sidebar {
        font-size: 12px;
    }

    .table-sidebar thead th,
    .table-sidebar tbody td {
        padding: 10px 8px;
    }
}

/* Loading Spinner */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Hide UUID status on mobile */
@media (max-width: 768px) {
    #full_size_uuid_status,
    #shoulder_uuid_status {
        display: none !important;
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c0392b;
    color: white;
    transform: translateY(-1px);
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 20px;
}

.modal-header .modal-title {
    color: white;
    font-weight: 600;
}

.modal-header .close {
    color: white;
    opacity: 0.9;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 15px 20px;
    border-radius: 0 0 12px 12px;
}

.modal-body {
    padding: 20px;
}

.close {
    font-size: 28px;
    font-weight: 300;
    opacity: 0.8;
}

.close:hover {
    opacity: 1;
}

/* Responsive Action Buttons */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .table thead th:last-child,
    .table tbody td:last-child {
        min-width: 120px;
    }
}

/* Edit Page Container */
.edit-card-container {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* Status Card Sidebar */
.status-card-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid;
}

.status-approved {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, #d4edda 0%, #ffffff 100%);
}

.status-pending {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
}

.status-icon-sidebar {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.status-approved .status-icon-sidebar {
    background: #27ae60;
}

.status-pending .status-icon-sidebar {
    background: #f39c12;
}

.status-content-sidebar {
    flex: 1;
}

.status-title-sidebar {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.status-description-sidebar {
    font-size: 14px;
    color: #7f8c8d;
}

.status-badge-sidebar {
    margin-left: auto;
    flex-shrink: 0;
}

/* Approval Actions */
.approval-actions-sidebar {
    margin-bottom: 25px;
}

.btn-approval-sidebar {
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-approve-sidebar {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.btn-approve-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
    color: white;
}

.btn-unapprove-sidebar {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.btn-unapprove-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
    color: white;
}

/* Edit Form Card */
.edit-form-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-card-header {
    background: #f8f9fa;
    padding: 18px 25px;
    border-bottom: 2px solid #e9ecef;
}

.form-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-card-body {
    padding: 25px;
}

.form-section-sidebar {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section-sidebar:last-of-type {
    border-bottom: none;
}

.form-section-title-sidebar {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.form-group-sidebar {
    margin-bottom: 20px;
}

.form-label-sidebar {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label-sidebar.required::after {
    content: '*';
    color: #e74c3c;
    margin-left: 4px;
}

.form-control-sidebar {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-control-sidebar:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control-sidebar:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.form-text-sidebar {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #7f8c8d;
}

.form-error-sidebar {
    margin-top: 8px;
    color: #e74c3c;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-upload-sidebar {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload-sidebar:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-disabled-sidebar {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.form-actions-sidebar {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.btn-submit-sidebar {
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary-sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-disabled-sidebar {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.btn-modal-unapprove {
    background: #f39c12;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-unapprove:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    color: white;
}

/* Photo Upload Group - Two Column Layout */
.photo-upload-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.photo-upload-controls {
    display: flex;
    flex-direction: column;
}

.photo-preview-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Photo Preview Fixed Size */
.current-photo-sidebar {
    width: 100%;
    padding: 15px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.photo-label-sidebar {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.photo-preview-sidebar {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    background: #fff;
    display: block;
}

.no-photo-placeholder {
    width: 100%;
    max-width: 300px;
    height: 300px;
    background: #f0f0f0;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
}

.no-photo-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-photo-placeholder p {
    margin: 0;
    font-size: 14px;
    color: #95a5a6;
}

/* Responsive photo preview */
@media (max-width: 992px) {
    .photo-upload-group {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .photo-preview-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .photo-preview-sidebar {
        max-width: 250px;
        height: 250px;
    }
    
    .no-photo-placeholder {
        max-width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .photo-preview-sidebar {
        max-width: 200px;
        height: 200px;
    }
    
    .no-photo-placeholder {
        max-width: 200px;
        height: 200px;
    }
}

/* ============================================
   MPowerF Specific Styles
   ============================================ */

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.section-title i {
    font-size: 20px;
}

/* Note Message */
.note-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #856404;
}

.note-message p {
    margin-bottom: 5px;
    font-size: 14px;
}

.note-message p:last-child {
    margin-bottom: 0;
}

/* Doctor Entry Styles */
.doctor-entry {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.doctor-entry:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.doctor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.doctor-header h5 {
    margin: 0;
    color: #667eea;
    font-size: 16px;
    font-weight: 700;
}

.remove-doctor-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.doctor-separator {
    margin: 0;
    border: none;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

/* Disabled/Read-only Fields */
.form-control:disabled,
.form-control[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Select2 Customization */
.select2-container--default .select2-selection--single {
    height: 48px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-left: 16px;
    padding-right: 20px;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 10px;
}

.select2-container--default .select2-selection--single:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select2-dropdown {
    border: 2px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #667eea;
    color: white;
}

/* Mobile Optimization for 4.5" x 9" */
@media (max-width: 480px) and (max-height: 900px) {
    .card {
        padding: 15px;
        max-width: 100%;
    }

    .form-section {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .doctor-entry {
        padding: 15px;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 18px;
    }
}
