/* Kurdish Font */
@font-face {
    font-family: 'NizarNastaliqKurdish';
    src: url('../fonts/ku/72_Sarchia_Qaisy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Base Variables */
:root {
    /* Colors */
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --light: #f8f9fa;
    --dark: #343a40;
    
    /* Theme Colors */
    --main-color: #4CAF50;
    --main-color-hover: #45a049;
    --bg-color: #f4f4f4;
    --text-color: #333;
    --text-color-hover: #000;
    --input-bg: #fff;
    --input-border: #ccc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-bg-hover: #f1f1f1;
    
    /* Breakpoints */
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none !important;
}
html {
    font-size: 16px;
}

body {
    font-family: 'NizarNastaliqKurdish', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    text-align: right;
    transition: all 0.3s ease;
}

/* Dark Mode */
body.theme-dark {
    --bg-color: #1e1e1e;
    --text-color: #eee;
    --input-bg: #2a2a2a;
    --input-border: #444;
    --card-bg: #2c2c2c;
}

/* Layout */
.container, 
.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    html { font-size: 14px; }
    .container, .page-container { padding: 1rem; }
}

@media (max-width: 480px) {
    html { font-size: 13px; }
    .container, .page-container { 
        padding: 0.75rem;
        max-width: 100%;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1rem rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.card-header {
    padding: 1rem;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--input-border);
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold;
}

/* Forms */
.form-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
    outline: none;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--main-color);
    color: white;
}

.btn-primary:hover {
    background: var(--main-color-hover);
    transform: translateY(-2px);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.table th, 
.table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--input-border);
}

.table th {
    background: var(--light);
    font-weight: bold;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .form-box {
        padding: 1.5rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .form-box {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .form-control {
        padding: 0.6rem;
    }
    
    .table {
        display: block;
        overflow-x: auto;
    }
    
    .card {
        border-radius: 8px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

/* RTL Layout Adjustments */
.rtl-layout {
    text-align: right;
}

.rtl-layout .float-left { float: right; }
.rtl-layout .float-right { float: left; }
.rtl-layout .ml-auto { margin-left: 0; margin-right: auto; }
.rtl-layout .mr-auto { margin-right: 0; margin-left: auto; }

/* Style Switcher */
.style-switcher {
    position: fixed;
    right: 0;
    top: 60px;
    width: 200px;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--input-border);
    border-radius: 5px;
    z-index: 101;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.style-switcher.open {
    transform: translateX(-25px);
}