/* RTL Support for Request MVC Project */

/* Variables based on sample theme */
:root {
    --primary-dark-blue: #0a192f;
    --secondary-teal: #00b4a2;
    --accent-gold: #d4af37;
    --text-light: #ffffff;
    --text-secondary: #e0e0e0;
}

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

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

[dir="rtl"] .pull-right {
    float: left !important;
}

[dir="rtl"] .pull-left {
    float: right !important;
}

/* RTL Navigation */
[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

[dir="rtl"] .navbar-nav > li {
    float: right;
}

[dir="rtl"] .navbar-right {
    float: left !important;
}

[dir="rtl"] .navbar-brand {
    float: right;
}

[dir="rtl"] .navbar-toggle {
    float: left;
}

/* RTL Form Controls */
[dir="rtl"] .form-control {
    text-align: right;
}

[dir="rtl"] .input-group .form-control {
    float: right;
}

[dir="rtl"] .input-group .input-group-addon:first-child {
    border-right: 1px solid #ccc;
    border-left: 0;
}

[dir="rtl"] .input-group .input-group-addon:last-child {
    border-left: 1px solid #ccc;
    border-right: 0;
}

/* RTL Grid System */
[dir="rtl"] .col-xs-1,
[dir="rtl"] .col-xs-2,
[dir="rtl"] .col-xs-3,
[dir="rtl"] .col-xs-4,
[dir="rtl"] .col-xs-5,
[dir="rtl"] .col-xs-6,
[dir="rtl"] .col-xs-7,
[dir="rtl"] .col-xs-8,
[dir="rtl"] .col-xs-9,
[dir="rtl"] .col-xs-10,
[dir="rtl"] .col-xs-11,
[dir="rtl"] .col-xs-12,
[dir="rtl"] .col-sm-1,
[dir="rtl"] .col-sm-2,
[dir="rtl"] .col-sm-3,
[dir="rtl"] .col-sm-4,
[dir="rtl"] .col-sm-5,
[dir="rtl"] .col-sm-6,
[dir="rtl"] .col-sm-7,
[dir="rtl"] .col-sm-8,
[dir="rtl"] .col-sm-9,
[dir="rtl"] .col-sm-10,
[dir="rtl"] .col-sm-11,
[dir="rtl"] .col-sm-12,
[dir="rtl"] .col-md-1,
[dir="rtl"] .col-md-2,
[dir="rtl"] .col-md-3,
[dir="rtl"] .col-md-4,
[dir="rtl"] .col-md-5,
[dir="rtl"] .col-md-6,
[dir="rtl"] .col-md-7,
[dir="rtl"] .col-md-8,
[dir="rtl"] .col-md-9,
[dir="rtl"] .col-md-10,
[dir="rtl"] .col-md-11,
[dir="rtl"] .col-md-12,
[dir="rtl"] .col-lg-1,
[dir="rtl"] .col-lg-2,
[dir="rtl"] .col-lg-3,
[dir="rtl"] .col-lg-4,
[dir="rtl"] .col-lg-5,
[dir="rtl"] .col-lg-6,
[dir="rtl"] .col-lg-7,
[dir="rtl"] .col-lg-8,
[dir="rtl"] .col-lg-9,
[dir="rtl"] .col-lg-10,
[dir="rtl"] .col-lg-11,
[dir="rtl"] .col-lg-12 {
    float: right;
}

/* RTL List Groups */
[dir="rtl"] .list-group {
    padding-right: 0;
}

/* RTL Tables */
[dir="rtl"] .table th,
[dir="rtl"] .table td {
    text-align: right;
}

/* RTL Custom Grid */
[dir="rtl"] .custom-grid th {
    text-align: right;
}

[dir="rtl"] .custom-grid-search i {
    right: auto;
    left: 10px;
}

[dir="rtl"] .custom-grid-search input {
    padding-right: 12px;
    padding-left: 30px;
}

[dir="rtl"] .custom-grid-actions {
    direction: rtl;
}

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

[dir="rtl"] .alert .close {
    float: left;
}

/* RTL Panels */
[dir="rtl"] .panel-heading {
    text-align: right;
}

/* RTL Modal */
[dir="rtl"] .modal-header .close {
    float: left;
}

[dir="rtl"] .modal-footer {
    text-align: left;
}

/* RTL Pagination */
[dir="rtl"] .pagination {
    padding-right: 0;
}

[dir="rtl"] .pagination > li {
    float: right;
}

/* RTL Buttons */
[dir="rtl"] .btn-group > .btn {
    float: right;
}

    [dir="rtl"] .btn-group > .btn:first-child {
        margin-right: 0;
        border-radius: 0 0.375rem 0.375rem 0;
    }

    [dir="rtl"] .btn-group > .btn:last-child {
        margin-right: 0;
        border-radius: 0.375rem 0 0 0.375rem;
    }

/* RTL Icons */
[dir="rtl"] .fa,
[dir="rtl"] .fas,
[dir="rtl"] .far,
[dir="rtl"] .fab {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Arabic Font Support */
.arabic-text {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
}

/* Language Toggle Button */
.language-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background-color: var(--secondary-teal);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

[dir="rtl"] .language-toggle {
    right: auto;
    left: 10px;
}

.language-toggle:hover {
    background-color: var(--accent-gold);
}

/* Statistics Cards */
.stats-card {
    background-color: rgba(10, 25, 47, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 180, 162, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    color: var(--text-light);
}

.stats-card:hover {
    border-color: rgba(0, 180, 162, 0.4);
    box-shadow: 0 5px 15px rgba(0, 180, 162, 0.1);
}

.stats-card h3 {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.stats-card .stats-number {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--secondary-teal);
}

.stats-card .stats-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stats-card .stats-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    opacity: 0.7;
}

/* Progress Bar */
.progress {
    height: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.progress-bar {
    background-color: var(--secondary-teal);
}

.progress-bar-success {
    background-color: #2ecc71;
}

.progress-bar-warning {
    background-color: #f39c12;
}

.progress-bar-danger {
    background-color: #e74c3c;
}

/* Chart Circle */
.chart-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
}

.chart-circle .chart-inner {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background-color: var(--primary-dark-blue);
    position: absolute;
    top: 15%;
    left: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}
