/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8fafc;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== HOME PAGE STYLES ===== */
.home-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo i {
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== SIDEBAR STYLES REMOVED (Now in admin-sidebar.php) ===== */

/* ===== MAIN CONTENT AREA ===== */
.main-content {
    margin-left: 250px; /* Default for admin sidebar */
    padding: 20px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title h1 i {
    color: #10b981;
    font-size: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb-item {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: #10b981;
}

.breadcrumb-item.active {
    color: #111827;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #9ca3af;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.back-btn:hover {
    text-decoration: underline;
}

/* ===== MESSAGES ===== */
.message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

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

.message.success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.message.error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.message.warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.message.info {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.message i {
    font-size: 20px;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

/* ===== FORM STYLES ===== */
.form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.form-description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.field-group {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s;
}

.field-group:hover {
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.required {
    color: #ef4444;
    margin-left: 4px;
}

.field-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
    font-style: italic;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== SELECT STYLES ===== */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    font-size: 12px;
}

/* ===== CHECKBOX & RADIO STYLES ===== */
.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.checkbox-label:hover, .radio-label:hover {
    background: #f3f4f6;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ===== FILE UPLOAD STYLES ===== */
.file-upload-wrapper {
    position: relative;
}

.file-upload-btn {
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.file-upload-btn:hover {
    background: #059669;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-name {
    margin-top: 10px;
    font-size: 14px;
    color: #6b7280;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    display: none;
}

/* ===== PHOTO UPLOAD PREVIEW ===== */
.photo-preview-container {
    margin-top: 15px;
    display: none;
}

.photo-preview {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.photo-preview img {
    max-width: 300px;
    max-height: 200px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    object-fit: contain;
    background: #f9fafb;
}

.photo-preview-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.preview-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.preview-btn:hover {
    background: #f3f4f6;
}

.preview-btn.download {
    border-color: #10b981;
    color: #10b981;
}

.preview-btn.download:hover {
    background: #d1fae5;
}

.preview-btn.remove {
    border-color: #ef4444;
    color: #ef4444;
}

.preview-btn.remove:hover {
    background: #fee2e2;
}

/* ===== SIGNATURE PAD STYLES ===== */
.signature-container {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.signature-canvas {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: crosshair;
    width: 100%;
    height: 200px;
    touch-action: none;
}

.signature-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.signature-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.signature-btn.clear {
    background: #ef4444;
    color: white;
}

.signature-btn.clear:hover {
    background: #dc2626;
}

.signature-btn.undo {
    background: #f59e0b;
    color: white;
}

.signature-btn.undo:hover {
    background: #d97706;
}

.signature-btn.save {
    background: #10b981;
    color: white;
}

.signature-btn.save:hover {
    background: #059669;
}

.signature-preview {
    margin-top: 20px;
    display: none;
}

.signature-preview img {
    max-width: 300px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
}

.signature-preview-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ===== STAR RATING ===== */
.star-rating {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.star {
    font-size: 32px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s;
}

.star:hover,
.star.active {
    color: #fbbf24;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.submit-btn {
    background: #10b981;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #059669;
}

.reset-btn {
    background: #6b7280;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.reset-btn:hover {
    background: #4b5563;
}

/* ===== FORM INSTRUCTIONS ===== */
.form-instructions {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.instructions-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    padding: 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
}

/* ===== SECTION CARDS ===== */
.section-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

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

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.view-all:hover {
    text-decoration: underline;
}

/* ===== TABLE STYLES ===== */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #f9fafb;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
    border-bottom: 2px solid #e5e7eb;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.data-table tr:hover {
    background: #f9fafb;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.action-btn.view {
    background: #dbeafe;
    color: #1d4ed8;
}

.action-btn.view:hover {
    background: #bfdbfe;
}

.action-btn.edit {
    background: #d1fae5;
    color: #065f46;
}

.action-btn.edit:hover {
    background: #a7f3d0;
}

.action-btn.delete {
    background: #fee2e2;
    color: #991b1b;
}

.action-btn.delete:hover {
    background: #fecaca;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #059669;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.quick-action:hover {
    background: white;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-icon {
    width: 50px;
    height: 50px;
    background: #10b981;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.quick-action span {
    font-weight: 500;
    text-align: center;
}

/* ===== SUBMISSION VIEW STYLES ===== */
.submission-details {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

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

.submission-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.submission-meta {
    display: flex;
    gap: 20px;
    color: #6b7280;
    font-size: 14px;
}

.submission-field {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.field-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    display: block;
}

.field-value {
    color: #4b5563;
    line-height: 1.6;
}

/* Photo/Signature View in Submissions */
.photo-view-container, .signature-view-container {
    margin-top: 15px;
}

.photo-view, .signature-view {
    position: relative;
    display: inline-block;
}

.photo-view img, .signature-view img {
    max-width: 400px;
    max-height: 300px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    padding: 10px;
    object-fit: contain;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #059669;
}

/* ===== LOADING INDICATOR ===== */
.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}

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

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-body {
    padding: 20px;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

/* ===== PORTAL SECTION (Homepage) ===== */
.portal-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.portal-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease 0.3s both;
}

.portal-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--card-color) 0%, #667eea 100%);
}

.admin-portal {
    --card-color: #10b981;
}

.client-portal {
    --card-color: #10b981;
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.portal-icon {
    text-align: center;
    margin-bottom: 25px;
}

.portal-icon i {
    font-size: 4rem;
    color: var(--card-color);
    background: linear-gradient(135deg, var(--card-color), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portal-card h2 {
    font-size: 2.2rem;
    color: #2d3748;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.portal-description {
    color: #718096;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.features-list {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.features-list h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.features-list ul {
    list-style: none;
}

.features-list li {
    color: #4a5568;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.features-list li i {
    color: var(--card-color);
    font-size: 1.1rem;
}

.portal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--card-color), #667eea);
    color: white;
    text-decoration: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.portal-btn i {
    font-size: 1.4rem;
}

/* ===== SYSTEM INFO ===== */
.system-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease 0.6s both;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-card h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.info-card p {
    color: #718096;
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== FOOTER ===== */
.home-footer {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    margin-top: 40px;
    border-radius: 20px;
    animation: fadeIn 1s ease 0.9s both;
}

.home-footer p {
    margin-bottom: 20px;
    font-size: 1rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links i {
    font-size: 1.2rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .portal-container {
        flex-direction: column;
        align-items: center;
    }
    
    .portal-card {
        width: 90%;
        max-width: 500px;
    }
    
    .stats-row {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    /* Adjust main content for collapsible sidebar */
    .main-content {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.2rem;
    }
    
    .portal-card {
        padding: 30px;
    }
    
    .portal-card h2 {
        font-size: 1.8rem;
    }
    
    .info-card {
        width: 100%;
        max-width: 400px;
    }
    
    .system-info {
        flex-direction: column;
        align-items: center;
    }
    
    /* Adjust main content for mobile sidebar */
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .page-title {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .form-container,
    .page-content,
    .section-card {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
    }
    
    .field-group {
        padding: 15px;
    }
    
    /* Mobile photo/signature styles */
    .photo-preview img,
    .signature-preview img {
        max-width: 100%;
    }
    
    .photo-view img,
    .signature-view img {
        max-width: 100%;
        max-height: 200px;
    }
    
    .signature-canvas {
        height: 180px;
    }
    
    .signature-actions {
        gap: 8px;
    }
    
    .signature-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .home-container {
        padding: 10px;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .portal-card {
        padding: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .page-header,
    .form-container,
    .page-content {
        padding: 15px;
    }
    
    .page-title h1 {
        font-size: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .star-rating {
        font-size: 1.5rem;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }
    
    .action-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}