/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #0A66C2;
    --primary-hover: #004182;
    --secondary-color: #666;
    --text-primary: #000000e6;
    --text-secondary: #00000099;
    --border-color: #e0e0e0;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f2ef;
    --bg-hover: #f3f6f8;
    --success-color: #057642;
    --error-color: #cc1016;
    --warning-color: #f5c26b;
    --shadow-sm: 0 0 0 1px rgba(0,0,0,0.08), 0 0 2px rgba(0,0,0,0.08);
    --shadow-md: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.08);
    --shadow-lg: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.12);
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-bengali: 'Noto Sans Bengali', sans-serif;
    --font-arabic: 'Noto Sans Arabic', sans-serif;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Bengali text styling */
.bn-text, [lang="bn"] {
    font-family: var(--font-bengali);
}

/* Arabic text styling with RTL */
.ar-text, [lang="ar"] {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A66C2 0%, #004182 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-family: var(--font-bengali);
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* ===== APP CONTAINER ===== */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    height: 34px;
    background: white !important;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 12px;
    border: 2px solid #001f3f !important;
}

.logo:hover {
    background: #f0f0f0 !important;
    border-color: #003366 !important;
}

.logo-text {
    color: #001f3f !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #eef3f8;
    border-radius: 4px;
    padding: 6px 8px;
    width: 280px;
}

.search-icon {
    font-size: 16px;
    margin-right: 6px;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--secondary-color);
}

.bengali-logo {
    height: 34px;
    width: auto;
    margin-left: 12px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.bengali-logo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.nav-right {
    display: flex;
    gap: 24px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-hover);
}

.nav-icon {
    font-size: 20px;
}

.nav-label {
    font-size: 12px;
    color: var(--secondary-color);
    margin-top: 2px;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--error-color);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px;
}

/* ===== FOOTER ===== */
.app-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 16px;
}

.footer-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 120px;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

/* ===== COMMON COMPONENTS ===== */
.card {
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--secondary-color);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.input-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.input-field:focus {
    border-color: var(--primary-color);
}

.input-field::placeholder {
    color: var(--secondary-color);
}

.textarea-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.textarea-field:focus {
    border-color: var(--primary-color);
}

.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 4px;
}

.success-message {
    color: var(--success-color);
    font-size: 12px;
    margin-top: 4px;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

