/* PUBLIC STYLES - MODERNIZED VERSION */

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #2d2a26;
    line-height: 1.6;
}

/* =====================================================
   LAYOUT & CONTAINERS
   ===================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
}

/* =====================================================
   HEADER STYLES - UPDATED TO MATCH ADMIN
   ===================================================== */
header {
    background-color: #ffffff;
    color: #2d2a26;
    padding: 0;
    margin-bottom: 30px;
    border-bottom: 3px solid #f26522;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    position: relative; /* ⬅️ Add this */
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

/* Center Section - NEW layout to center it visually in header */
.header-center {
    position: absolute;            /* ⬅️ Add */
    left: 50%;                     /* ⬅️ Add */
    transform: translateX(-50%);   /* ⬅️ Add */
    text-align: center;
    pointer-events: none;          /* ⬅️ Optional: allows clicks to pass through */
}

/* Logo Section */
.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.header-divider {
    width: 1px;
    height: 30px;
    background-color: #e0e0e0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.faculty-name {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.logo-section span:not(.faculty-name) {
    color: #ccc;
}

/* Center Section */
.header-center {
    text-align: center;
    flex: 1;
}

header h1 {
    font-size: 1.5rem;
    color: #2d2a26;
    font-weight: 600;
    margin: 0;
}

.header-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}

.user-info span {
    font-weight: 500;
    color: #666;
}

.logout-btn {
    background-color: #f26522;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background-color: #e04d1a;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Debug helper - remove this after testing */
.logout-btn::after {
    content: " →";
    margin-left: 5px;
}

/* Mobile Header */
@media (max-width: 968px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-left {
        width: 100%;
        justify-content: center;
    }

    .header-center {
        position: static;         /* ⬅️ Reset to default */
        transform: none;
        width: 100%;
        text-align: center;
        pointer-events: auto;
    }

    .user-info {
        width: 100%;
        justify-content: center;
        flex-direction: column; /* ✅ STACK items */
        align-items: center;    /* ✅ CENTER horizontally */
        gap: 0.5rem;            /* ✅ Add spacing between items */
    }

    .user-actions {
        flex-direction: column; /* ✅ Stack email + logout button */
        align-items: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 50px;
    }
    
    .header-divider {
        display: none;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 5px;
    }
    
    header h1 {
        font-size: 1.25rem;
    }
    
    .header-subtitle {
        font-size: 0.8rem;
    }
    
    .logout-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* =====================================================
   INSTRUCTIONS & INFO BOXES
   ===================================================== */
.instructions-section,
.info-box {
    background-color: #f8f9fa;
    border-left: 4px solid #525151;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.instructions-section h3 {
    color: #525151;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-box p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* =====================================================
   PROJECT INFO SECTION
   ===================================================== */
.project-info {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 3px solid #f26522;
}

.project-info h2 {
    color: #f26522;
    margin-bottom: 20px;
    font-size: 1.25rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5f5f5;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    padding: 8px 0;
}

.info-label {
    font-weight: bold;
    color: #2A2D2A;
    display: inline-block;
    min-width: 140px;
}

.info-value {
    color: #666;
}

.project-files-section {
    background-color: #f8f9fa;
    border-left: 4px solid #5cb85c;
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.project-files-section h4 {
    color: #5cb85c;
    margin: 0;
}

@media (max-width: 768px) {
    .project-info {
        padding: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .project-files-section {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =====================================================
   EVALUATION SECTIONS
   ===================================================== */
.evaluation-section {
    background-color: white;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.criteria-header {
    background-color: #525151;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.criteria-title-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 15px;
}

.criteria-number {
    background-color: #f26522;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.criteria-title {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.3;
}

.criteria-weight {
    font-size: 0.9rem;
    color: #FFD700;
    font-weight: bold;
    white-space: nowrap;
}

.criteria-content {
    padding: 20px;
}

.criteria-list {
    list-style: none;
    margin-bottom: 20px;
}

.criteria-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #555;
    font-style: italic;
    font-size: 0.95rem;
}

.criteria-list li:before {
    content: "▪";
    position: absolute;
    left: 0;
    color: #f26522;
    font-weight: bold;
}

@media (max-width: 768px) {
    .criteria-header {
        padding: 12px 15px;
    }
    
    .criteria-title {
        font-size: 0.9rem;
    }
    
    .criteria-weight {
        font-size: 0.85rem;
    }
    
    .criteria-content {
        padding: 15px;
    }
}

/* =====================================================
   GRADE REFERENCE TABLE
   ===================================================== */
.grade-reference {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 3px solid #525151;
}

.grade-reference h4 {
    color: #525151;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.grade-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.grade-table th,
.grade-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.grade-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #525151;
}

.grade-table tr:hover {
    background-color: #fafafa;
}

@media (max-width: 768px) {
    .grade-table {
        font-size: 0.85rem;
    }
    
    .grade-table th,
    .grade-table td {
        padding: 8px 6px;
    }
}

/* =====================================================
   GRADE SELECTOR & FORMS
   ===================================================== */
.grade-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 10px;
}

.grade-label {
    font-weight: bold;
    color: #525151;
}

.grade-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    min-width: 100px;
}

.grade-dropdown:focus {
    outline: none;
    border-color: #f26522;
    box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.2);
}

.points-display {
    font-weight: bold;
    color: #5cb85c;
    font-size: 1.1rem;
}

/* =====================================================
   TOTAL POINTS SECTION
   ===================================================== */
.total-points {
    background-color: #f26522;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.total-points h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.total-points-value {
    font-size: 3rem;
    font-weight: bold;
    color: #FFD700;
}

@media (max-width: 768px) {
    .total-points h3 {
        font-size: 1.25rem;
    }
    
    .total-points-value {
        font-size: 2.5rem;
    }
}

/* =====================================================
   EXPLANATION SECTION
   ===================================================== */
.explanation-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 3px solid #f26522;
}

.explanation-section h3 {
    color: #f26522;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.explanation-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #f26522;
    box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.2);
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: #525151;
    color: white;
}

.btn-primary:hover {
    background-color: #3A3A3A;
}

.btn-success {
    background-color: #5cb85c;
    color: white;
}

.btn-success:hover {
    background-color: #4cae4c;
}

.btn-danger {
    background-color: #d9534f;
    color: white;
}

.btn-danger:hover {
    background-color: #c9302c;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-sharepoint {
    background-color: #5cb85c;
    color: white;
}

.btn-sharepoint:hover {
    background-color: #4cae4c;
}

.download-btn {
    background-color: #525151;
    color: white;
}

.download-btn:hover {
    background-color: #3A3A3A;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* =====================================================
   PROJECT CARDS (EVALUATOR DASHBOARD)
   ===================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-header h3 {
    margin: 0;
    color: #2d2a26;
    font-size: 1.2rem;
    flex: 1;
}

.project-acronym {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
}

.project-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #666;
}

.project-info strong {
    color: #2d2a26;
}

.project-status {
    margin-bottom: 1rem;
}

.project-actions {
    text-align: center;
}

.project-actions .btn {
    width: 100%;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .project-header {
        flex-direction: column;
    }
}

/* =====================================================
   STATUS BADGES
   ===================================================== */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-complete {
    background: #d4edda;
    color: #155724;
}

.status-active {
    background: #fff3cd;
    color: #856404;
}

.status-pending {
    background: #f8f9fa;
    color: #6c757d;
}

.status-unlocked {
    background: #e7f3ff;
    color: #004085;
}

/* =====================================================
   LOCKED/UNLOCKED MESSAGES
   ===================================================== */
.locked-message,
.unlocked-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.locked-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.unlocked-message {
    background: #cfe2ff;
    border: 1px solid #b6d4fe;
    color: #004085;
}

/* Form locked state */
.form-locked {
    opacity: 0.7;
    pointer-events: none;
}

.form-locked .grade-dropdown,
.form-locked textarea {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.form-locked .btn {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =====================================================
   MODAL STYLES
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 450px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease-out 0.2s;
    animation-fill-mode: both;
}

.modal-icon svg {
    width: 40px;
    height: 40px;
    color: white;
    stroke-width: 3;
}

.modal-content h2 {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
        margin: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* =====================================================
   NOTIFICATIONS
   ===================================================== */
.save-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.save-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.save-notification svg {
    width: 20px;
    height: 20px;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

#success-modal .modal-icon svg path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: drawCheck 0.6s ease-in-out 0.7s forwards;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.no-projects {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin: 3rem 0;
}

/* =====================================================
   RESPONSIVE UTILITIES
   ===================================================== */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 10px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    body {
        background: white;
    }
    
    header,
    .btn,
    .logout-btn,
    .form-actions {
        display: none !important;
    }
    
    .evaluation-section,
    .project-info {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* =====================================================
   CUSTOM SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* MODERN ICON STYLES */

/* Button with icon layout */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.btn-icon:hover svg {
    transform: translateX(-2px);
}

/* Different icon styles for different button types */
.btn-primary.btn-icon svg {
    stroke: currentColor;
}

.btn-sharepoint.btn-icon svg {
    stroke: currentColor;
}

.btn-secondary.btn-icon svg {
    stroke: currentColor;
}

/* Specific button styles with better colors */
.download-btn {
    background-color: #525151;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background-color: #3A3A3A;
}

.btn-sharepoint {
    background-color: #0078d4; /* Microsoft blue */
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-sharepoint:hover {
    background-color: #005ba1;
}

/* Excel button with green color */
.btn-excel {
    background-color: #217346; /* Excel green */
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-excel:hover {
    background-color: #185c33;
}

/* PDF button with red color */
.btn-pdf {
    background-color: #dc3545; /* PDF red */
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-pdf:hover {
    background-color: #c82333;
}

/* Icon-only buttons */
.btn-icon-only {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-icon-only svg {
    width: 20px;
    height: 20px;
}

/* Alternative icon library integration (Font Awesome) */
.btn-icon i {
    font-size: 16px;
}

/* Modern floating action button style */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #f26522;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fab svg {
    width: 24px;
    height: 24px;
}

/* Icon colors for different states */
.icon-success { color: #28a745; }
.icon-danger { color: #dc3545; }
.icon-warning { color: #ffc107; }
.icon-info { color: #17a2b8; }

/* Remove old background image styles */
.download-btn:before,
[class*="icon-"] {
    background: none !important;
}

/* Improved project files section with icon */
.project-files-section {
    background-color: #f0f8ff;
    border-left: 4px solid #0078d4;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.project-files-section h4 {
    color: #0078d4;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-files-section h4 svg {
    width: 24px;
    height: 24px;
}

/* Modern card with icon header */
.card-icon-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.card-icon-header svg {
    width: 32px;
    height: 32px;
    color: #f26522;
}

/* Small inline icons */
.inline-icon {
    display: inline-flex;
    vertical-align: middle;
    margin-right: 4px;
}

.inline-icon svg {
    width: 16px;
    height: 16px;
}

/* Animated icon on hover */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.btn-icon:hover svg {
    animation: pulse 0.6s ease-in-out;
}

/* Loading spinner icon */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Icon list styles */
.icon-list {
    list-style: none;
    padding: 0;
}

.icon-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.icon-list li svg {
    width: 20px;
    height: 20px;
    color: #f26522;
    flex-shrink: 0;
}

/* Enhanced User Info Section */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-email-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 12px;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
}

.user-email-wrapper svg {
    width: 16px;
    height: 16px;
    color: #666;
}

/* Back Button Styling */
.btn-back {
    background-color: #f8f9fa;
    color: #666;
    padding: 6px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

.btn-back:hover {
    background-color: #e9ecef;
    color: #333;
    transform: translateX(-3px);
    border-color: #d0d0d0;
}

.btn-back svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-back:hover svg {
    transform: translateX(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .user-info {
        width: 100%;
        align-items: center;
    }
    
    .user-actions {
        justify-content: center;
    }
    
    .btn-back {
        width: auto;
    }
}

/* =====================================================
   FOOTER STYLES
   ===================================================== */
.footer {
    background-color: #525151;  /* Your requested gray background */
    color: #ffffff;             /* White text */
    margin-top: 60px;
    padding: 40px 0 30px;
    border-top: 3px solid #f26522;  /* Orange accent */
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    text-align: center;
    margin-bottom: 30px;
}

.footer-content h3 {
    color: #ffffff;  /* White heading */
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info p {
    margin-bottom: 10px;
    color: #ffffff;  /* White text */
    font-size: 1rem;
}

.contact-info strong {
    color: #ffffff;  /* White for labels */
    font-weight: 600;
}

.contact-info a {
    color: #f26522;  /* Orange for links */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ff7b3d;  /* Lighter orange on hover */
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);  /* Subtle white border */
    color: rgba(255, 255, 255, 0.8);  /* Slightly transparent white */
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer {
        margin-top: 40px;
        padding: 30px 0 20px;
    }
    
    .footer-content h3 {
        font-size: 1.1rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
}

/* Ensure footer stays at bottom */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}