/* Custom Styles for Edward Ohene Kye Family Scholarship */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #01244e;
}

::-webkit-scrollbar-thumb:hover {
    background: #001a38;
}

/* Navigation links hover effect */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

/* Form styles - Base inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
input[type="url"],
input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.5;
    background-color: #ffffff;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Enhanced select dropdown styling */
select {
    width: 100% !important;
    padding: 14px 45px 14px 16px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%2301244e' d='M10 12l-6-6h12l-6 6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 20px 20px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Remove IE dropdown arrow */
select::-ms-expand {
    display: none !important;
}

/* Ensure arrow stays visible in all states */
select,
select:hover,
select:focus,
select:active {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%2301244e' d='M10 12l-6-6h12l-6 6z'/%3E%3C/svg%3E") !important;
}

/* Textarea specific */
textarea {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    line-height: 1.6 !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease !important;
    min-height: 120px !important;
    resize: vertical !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Focus states */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #01244e;
    box-shadow: 0 0 0 3px rgba(1, 36, 78, 0.1);
    background-color: #ffffff;
}

/* Maintain select arrow on focus */
select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%2301244e' d='M10 12l-6-6h12l-6 6z'/%3E%3C/svg%3E") !important;
}

/* Hover states */
input[type="text"]:hover:not(:focus),
input[type="email"]:hover:not(:focus),
input[type="tel"]:hover:not(:focus),
input[type="date"]:hover:not(:focus),
input[type="password"]:hover:not(:focus),
input[type="url"]:hover:not(:focus),
input[type="number"]:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: #9ca3af;
}

/* Select hover - maintain arrow */
select:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%2301244e' d='M10 12l-6-6h12l-6 6z'/%3E%3C/svg%3E") !important;
}

/* Disabled state */
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* File input styling */
input[type="file"] {
    padding: 12px 14px;
    border: 1.5px dashed #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    background-color: #f9fafb;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #01244e;
    background-color: #f3f4f6;
}

input[type="file"]:focus {
    outline: none;
    border-color: #01244e;
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(1, 36, 78, 0.1);
}

/* Checkbox and radio styling */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 1.5px solid #d1d5db;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    accent-color: #01244e;
}

/* Error state for validation */
input.border-red-500,
select.border-red-500,
textarea.border-red-500 {
    border-color: #ef4444;
    background-color: #fef2f2;
}

input.border-red-500:focus,
select.border-red-500:focus,
textarea.border-red-500:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #1f2937;
}

.required::after {
    content: " *";
    color: #dc2626;
}

/* Button styles */
button,
.btn {
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-weight: 600;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Alert messages */
.alert {
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #01244e;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Print styles */
@media print {
    header,
    footer,
    .no-print {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #01244e;
    outline-offset: 2px;
}

