/* Custom Colors */
.bg-alabaster {
    background-color: #F1EFE3;
}
.text-sub {
    font-size: 1rem;
    color: #000000;
}
.text-lime-green {
    color: #32CD32;
}

.bg-mantis {
    background-color: #68BB59;
}

.text-mantis {
    color: #68BB59;
}

.border-mantis {
    border-color: #68BB59;
}

/* Button Styles */
.btn-primary {
    background-color: #68BB59;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #5aa84d;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #68BB59;
    box-shadow: 0 0 0 3px rgba(104, 187, 89, 0.1);
}

/* Dashboard Styles */
.status-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.status-investigation {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.status-resolved {
    background-color: #dcfce7;
    color: #16a34a;
}

/* Admin Dashboard */
.dashboard-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

/* Enhanced Responsive Adjustments */

/* Mobile First Approach */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .form-input {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 320px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .dashboard-card {
        padding: 0.75rem;
    }
}

/* Tablet Devices */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.25rem;
    }
}

/* Large Desktop Screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Extra Large Screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1536px;
    }
}

/* Print Styles */
@media print {
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    .dashboard-card {
        box-shadow: none;
        border: 1px solid #d1d5db;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-alabaster {
        background-color: #ffffff;
    }
    
    .text-lime-green {
        color: #006400;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .btn-primary,
    .btn-secondary {
        transition: none;
    }
    
    .form-input {
        transition: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover,
    .btn-secondary:hover {
        background-color: initial;
    }
    
    .form-input:focus {
        box-shadow: 0 0 0 2px rgba(104, 187, 89, 0.2);
    }
}

/* Landscape Mobile Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .min-h-screen {
        min-height: auto;
    }
    
    .flex.items-center.justify-center {
        align-items: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* You can add dark mode styles here if needed */
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Improve text readability on small screens */
@media (max-width: 480px) {
    body {
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
}

/* Table responsive improvements */
@media (max-width: 768px) {
    table {
        font-size: 0.75rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

/* Modal responsive improvements */
@media (max-width: 640px) {
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
}

/* Form element touch target sizes for mobile */
@media (max-width: 768px) {
    button, 
    input[type="submit"], 
    input[type="button"] {
        min-height: 44px;
    }
    
    input, 
    select, 
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}