/* Custom CSS */

/* Scrollable tables */
.scrollable-table {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
}

/* Form styles */
.required-field::after {
    content: '*';
    color: red;
    margin-left: 3px;
}

/* Validation */
.input-error {
    border-color: red !important;
}

.error-message {
    color: red;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Avatar styles */
.avatar-container {
    width: 150px;
    height: 200px;
    border: 2px solid #ddd;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f4f6;
    color: #9ca3af;
    width: 100%;
    height: 100%;
}

/* Dashboard cards */
.stats-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transition: transform 0.2s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

/* Sidebar active link */
.sidebar-active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

/* Print-only styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* CAPTCHA container */
.captcha-container {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.captcha-image {
    border: 1px solid #ddd;
    margin-right: 0.5rem;
}

.refresh-captcha {
    cursor: pointer;
    color: #3b82f6;
}

.refresh-captcha:hover {
    color: #2563eb;
}
