/* Utility Classes - CLEANED VERSION */

/* =================================
   IMPORTS
   ================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =================================
   LOADING STATES
   ================================= */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 82, 163, 0.1);
    border-left: 4px solid #0052a3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner.large {
    width: 60px;
    height: 60px;
    border-width: 6px;
}

.loading-spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

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

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(35, 35, 35, 0.9));
    border-radius: 12px;
    border-left: 4px solid #0052a3;
    color: #ffffff;
    min-height: 200px;
}

.loading-text {
    margin-top: 20px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

/* =================================
   SKELETON LOADING
   ================================= */
.skeleton {
    background: linear-gradient(90deg, rgba(60, 60, 60, 0.2) 25%, rgba(80, 80, 80, 0.4) 50%, rgba(60, 60, 60, 0.2) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin: 8px 0;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin: 12px 0;
}

.skeleton-card {
    height: 120px;
    margin: 16px 0;
}

/* =================================
   EMPTY STATES
   ================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(35, 35, 35, 0.9));
    border-radius: 12px;
    border-left: 4px solid #ff6b35;
    color: #ffffff;
    max-width: 500px;
    margin: 40px auto;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state p {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.empty-state-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0052a3 0%, #003366 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-state-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.4);
}

/* =================================
   SUCCESS/ERROR STATES
   ================================= */
.success-message {
    background: linear-gradient(145deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.05));
    border-left: 4px solid #28a745;
    padding: 15px 20px;
    border-radius: 8px;
    color: #ffffff;
    margin: 20px 0;
}

.error-message {
    background: rgba(220, 53, 69, 0.9);
    border-left: 4px solid #ff6b35;
    padding: 15px 20px;
    border-radius: 8px;
    color: #ffffff;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.warning-message {
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.1), rgba(255, 143, 0, 0.05));
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    border-radius: 8px;
    color: #ffffff;
    margin: 20px 0;
}

.info-message {
    background: linear-gradient(145deg, rgba(0, 82, 163, 0.1), rgba(0, 51, 102, 0.05));
    border-left: 4px solid #0052a3;
    padding: 15px 20px;
    border-radius: 8px;
    color: #ffffff;
    margin: 20px 0;
}

/* =================================
   FORM UTILITIES
   ================================= */
.form-label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(35, 35, 35, 0.9);
    border: 2px solid rgba(60, 60, 60, 0.5);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #0052a3;
    box-shadow: 0 0 10px rgba(0, 82, 163, 0.3);
}

.form-input::placeholder {
    color: #888888;
}

.form-error {
    color: #ff6b35;
    font-size: 14px;
    margin-top: 5px;
}

.form-success {
    color: #28a745;
    font-size: 14px;
    margin-top: 5px;
}

/* =================================
   VISIBILITY UTILITIES
   ================================= */
.hidden {
    display: none;
}

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

/* =================================
   SPACING UTILITIES
   ================================= */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

/* =================================
   TEXT UTILITIES
   ================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: #0052a3; }
.text-secondary { color: #cccccc; }
.text-success { color: #28a745; }
.text-warning { color: #ffc107; }
.text-error { color: #ff6b35; }
.text-white { color: #ffffff; }
