/* TUMS Health IT System - Custom Styles */

/* IRANYekanX Font Face */
@font-face {
    font-family: 'IRANYekanX';
    src: url('/fonts/IRANYekanX/IRANYekanX.woff2') format('woff2'),
         url('/fonts/IRANYekanX/IRANYekanX.woff') format('woff'),
         url('/fonts/IRANYekanX/IRANYekanX.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Global Font Settings */
body {
    font-family: 'IRANYekanX', 'Tahoma', 'Arial', sans-serif;
    font-weight: normal;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'IRANYekanX', 'Tahoma', 'Arial', sans-serif;
    font-weight: 600;
}

p, span, div, a {
    font-family: 'IRANYekanX', 'Tahoma', 'Arial', sans-serif;
}

/* Card and Container Text */
.card-title, .card-text {
    font-family: 'IRANYekanX', 'Tahoma', 'Arial', sans-serif;
}

/* Login Page Styles */
.login-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .form-control {
    text-align: right;
}

[dir="rtl"] .btn {
    text-align: center;
}

/* Custom Login Card Styles */
.login-page-fullscreen .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.login-page-fullscreen .card-header {
    background: transparent;
    border: none;
    padding: 2rem 2rem 1rem;
}

.login-page-fullscreen .card-body {
    padding: 1rem 2rem 2rem;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: 'IRANYekanX', 'Tahoma', 'Arial', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-family: 'IRANYekanX', 'Tahoma', 'Arial', sans-serif;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-family: 'IRANYekanX', 'Tahoma', 'Arial', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 12px 16px;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-left: 4px solid #198754;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card-wrapper {
        max-width: 100%;
        padding: 1rem;
    }
    
    .login-page-fullscreen .card-header,
    .login-page-fullscreen .card-body {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}
