:root {
    --primary-color: #a0a8b5;
    --secondary-color: #7a8799;
    --accent-color: #5c7171;
    --light-color: #f9fcfd;
    --dark-color: #5d6775;
    --text-color: #c0c6cf;
    --background-color: #1a1e23;
    --white: #2a3038;
    --black: #12151a;
    --success-color: #3cc76a;
    --warning-color: #ffb347;
    --danger-color: #ff6b6b;
    
    /* New futuristic variables */
    --border-radius: 12px;
    --transition-speed: 0.4s;
    --box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    --box-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --neon-glow: 0 0 10px rgba(160, 168, 181, 0.6);
    --glass-effect: rgba(42, 48, 56, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
}
html{
    overflow-x: hidden;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(92, 113, 113, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(160, 168, 181, 0.03) 0%, transparent 25%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Futuristic Header Styles */
header {
    background-color: var(--white);
    color: var(--text-color);
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition-speed);
}

.logo:hover {
    transform: scale(1.02) translateZ(0);
}

.logo img {
    height: 40px;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(160, 168, 181, 0.5));
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 0.5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-speed);
    box-shadow: var(--neon-glow);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

/* Enhanced Main Content Styles */
.main-content {
    padding: 2rem 0;
    flex: 1;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--glass-effect);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
    position: relative;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: var(--box-shadow-hover);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: var(--glass-border);
    padding-bottom: 0.75rem;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    box-shadow: var(--neon-glow);
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    background: rgba(42, 48, 56, 0.5);
    border: var(--glass-border);
}

.stat:hover {
    background-color: rgba(61, 67, 73, 0.4);
    transform: translateX(5px);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    text-shadow: var(--neon-glow);
}

.stat-value::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-primary);
    margin-right: 0.5rem;
    box-shadow: var(--neon-glow);
}

.stat-label {
    color: var(--text-color);
    font-weight: 500;
}

/* Enhanced Table Styles */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: var(--glass-border);
    color: var(--text-color);
}

.data-table th {
    background: var(--gradient-primary);
    color: var(--light-color);
    font-weight: 600;
    position: relative;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.data-table th::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--light-color);
    opacity: 0.7;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr {
    transition: background-color var(--transition-speed);
}

.data-table tr:hover {
    background-color: rgba(61, 67, 73, 0.3);
}

/* Enhanced Form Styles */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: var(--glass-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--transition-speed);
    background-color: rgba(42, 46, 51, 0.5);
    color: var(--text-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(160, 168, 181, 0.2), var(--neon-glow);
    background-color: rgba(42, 46, 51, 0.8);
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-speed);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--neon-glow);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--box-shadow-hover), var(--neon-glow);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #4cd97b 100%);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffc27a 100%);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #ff8e8e 100%);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Enhanced Login Form Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent 20%, #1a1e23 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-form {
    background: var(--glass-effect);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    width: 100%;
    max-width: 400px;
    transform: translateY(0);
    transition: transform var(--transition-speed);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
}

.login-form:hover {
    transform: translateY(-5px) translateZ(0);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
    text-shadow: var(--neon-glow);
}

.login-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    box-shadow: var(--neon-glow);
}

/* Fix for Rockmould logo on login page */
.login-container .logo {
    justify-content: center;
    margin-bottom: 20px;
}

.login-container .logo h1 {
    color: var(--light-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), var(--neon-glow);
}

.login-container .logo img {
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

/* Modified Footer Styles */
footer {
    background-color: var(--white);
    color: var(--text-color);
    padding: 2rem 0;
    margin-top: auto;
    border-top: var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    box-shadow: var(--neon-glow);
}

.footer-section p, .footer-section a {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-section a:hover {
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: var(--glass-border);
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Enhanced Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: rgba(60, 199, 106, 0.15);
    color: #3cc76a;
    border-left-color: var(--success-color);
}

.alert-error {
    background-color: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border-left-color: var(--danger-color);
}

/* Enhanced Perspective header in appraisal form */
.perspective-header {
    background: var(--gradient-primary);
    color: var(--light-color);
}

.perspective-header th {
    padding: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Enhanced Total row in tables */
.total-row {
    background-color: rgba(61, 67, 73, 0.5);
    font-weight: bold;
}

.total-row td {
    background-color: rgba(61, 67, 73, 0.5) !important;
    font-weight: bold;
    font-size: 1.1em;
    border-top: 2px solid var(--primary-color) !important;
}

.total-row td:nth-child(6) {
    background-color: rgba(93, 103, 117, 0.7) !important;
    color: var(--primary-color);
    font-size: 1.2em;
    text-shadow: var(--neon-glow);
}

/* Enhanced Form grid layouts */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Enhanced Button groups */
.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Enhanced Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    box-shadow: var(--neon-glow);
}

.status-draft {
    background-color: rgba(179, 140, 0, 0.15);
    color: #ffd166;
}

.status-draft::before {
    background-color: #ffd166;
}

.status-pending {
    background-color: rgba(0, 134, 179, 0.15);
    color: #48cae4;
}

.status-pending::before {
    background-color: #48cae4;
}

.status-completed {
    background-color: rgba(30, 126, 52, 0.15);
    color: #3cc76a;
}

.status-completed::before {
    background-color: #3cc76a;
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Futuristic animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(160, 168, 181, 0.5); }
    50% { box-shadow: 0 0 20px rgba(160, 168, 181, 0.8); }
    100% { box-shadow: 0 0 5px rgba(160, 168, 181, 0.5); }
}

/*.card:hover {
    animation: float 3s ease-in-out infinite, glow 2s ease-in-out infinite;
}*/


/* Add these mobile menu styles */
.mobile-menu-btn {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

/* Show mobile menu button on mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        display: none; /* Hidden by default on mobile */
    }
    
    nav.active {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        z-index: 99;
        transition: 0.4s;
        overflow-y: auto;
        padding: 70px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .form-grid,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--primary-color);
    }
    
    .btn {
        border: 2px solid var(--light-color);
    }
}

/* Demo dashboard content styles */
.demo-content {
    padding: 20px;
}

.demo-widget {
    background: var(--glass-effect);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.demo-stat {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: var(--glass-border);
}

.demo-stat:last-child {
    border-bottom: none;
}

.demo-chart {
    height: 200px;
    background: linear-gradient(180deg, #3d4349 0%, #2a2e33 100%);
    border-radius: var(--border-radius);
    margin: 20px 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 10px;
    border: var(--glass-border);
}

.chart-bar {
    width: 40px;
    background: var(--gradient-primary);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
    box-shadow: var(--neon-glow);
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.demo-table th, .demo-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: var(--glass-border);
}






/* Add to your existing CSS in style.css */

/* Mobile-first responsive improvements */
@media (max-width: 768px) {
  /* Header improvements for mobile */
  .header-content {
    flex-direction: row;
    padding: 0.5rem 0;
  }
  
  .logo h1 {
    font-size: 18px;
  }
  
  /* Mobile menu button */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
  }
  
  .mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
  }
  
  /* Menu overlay for mobile */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }
  
  /* Navigation for mobile */
  nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 99;
    transition: 0.4s;
    overflow-y: auto;
    padding: 70px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  nav.active {
    right: 0;
  }
  
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  nav ul li a {
    display: block;
    padding: 12px 0;
    color: var(--text-color);
  }
  
  /* Mobile menu close button */
  .close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
  }
  
  /* Dashboard improvements for mobile */
  .dashboard {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  /* Table improvements for mobile */
  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  /* Form improvements for mobile */
  .form-grid,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Button improvements for mobile */
  .btn-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  /* Footer improvements for mobile */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Appraisal view improvements */
  #appraisal-content > div {
    grid-template-columns: 1fr;
  }
  
  /* Template designer improvements */
  .template-designer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Additional responsive improvements for very small devices */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .login-form {
    padding: 1.5rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Reduce padding on smaller elements */
  .stat {
    padding: 0.5rem;
  }
  
  /* Make sure text doesn't overflow */
  .stat-value, .stat-label {
    font-size: 0.9rem;
  }
  
  /* Improve table readability on mobile */
  .data-table th, 
  .data-table td {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  /* Button sizing */
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Prevent zoom on input focus on mobile */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px; /* Prevents zoom on focus in iOS */
  }
}

/* Print styles */
@media print {
  .header-content, 
  .mobile-menu-btn,
  .main-content > .container > :first-child,
  .btn,
  footer {
    display: none !important;
  }
  
  .main-content {
    padding: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Enhanced Modal Styles */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.modal-content {
    background: var(--white);
    margin: 0;
    padding: 0;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 800px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3em;
    line-height: 1.3;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.close:hover {
    color: #ccc;
}

.modal-body {
    padding: 25px;
    color: var(--text-color);
    flex-grow: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}

/* Enhanced Question Styles */
#questionProgress {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

#questionContainer {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

#currentQuestion {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#questionText {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 500;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

#answerOptions {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Enhanced Answer Options */
.answer-option {
    margin-bottom: 10px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.answer-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.answer-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(160, 168, 181, 0.1);
}

.answer-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.answer-option input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.answer-option i {
    margin-right: 8px;
    font-size: 1.2em;
}

/* Rating Slider Improvements */
.rating-container {
    padding: 15px 0;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.rating-slider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.rating-slider input[type="range"] {
    flex-grow: 1;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
}

.rating-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.rating-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

/* Text Answer Area */
.text-answer {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s;
}

.text-answer:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(160, 168, 181, 0.2);
}

/* Comment Section */
.comment-section {
    margin-top: 20px;
}

.comment-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.comment-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s;
}

.comment-section textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(160, 168, 181, 0.2);
}

.comment-section small {
    color: #666;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* Progress Bar Improvements */
#progressBar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

#progressFill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal {
        padding: 5px;
        align-items: flex-start;
    }
    
    .modal-content {
        max-height: 98vh;
        margin: 10px 0;
    }
    
    .modal-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-header h3 {
        font-size: 1.1em;
        line-height: 1.2;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        flex-direction: column;
        padding: 15px;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    #questionText {
        font-size: 16px;
        padding: 8px;
    }
    
    .rating-slider {
        flex-direction: column;
        gap: 10px;
    }
    
    .rating-slider input[type="range"] {
        width: 100%;
    }
    
    .answer-option {
        padding: 10px 12px;
    }
    
    .answer-option label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 12px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .modal-footer {
        padding: 12px;
    }
    
    #questionText {
        font-size: 15px;
    }
    
    .answer-option {
        padding: 8px 10px;
    }
    
    .rating-value {
        font-size: 20px;
    }
}

/* Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: var(--neon-glow);
}

/* Validation Styles */
.comment-required {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2) !important;
}

.validation-error {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Loading State */
.modal-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-direction: column;
    gap: 15px;
}

.modal-loading .fa-spinner {
    font-size: 2em;
    color: var(--primary-color);
}

/* Success State */
.modal-success {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.modal-success .fa-check-circle {
    font-size: 3em;
    color: var(--success-color);
}

.modal-success h4 {
    color: var(--success-color);
    margin: 0;
}

.appraisal-circle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

.appraisal-circle::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.circle-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.circle-step i {
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: white;
}

.circle-step.active i {
    background: #4b6cb7;
}

.circle-step.completed i {
    background: #28a745;
}

.circle-step span {
    font-size: 12px;
    text-align: center;
}