/* Variables */
:root {
    --primary-color: #333333;
    --secondary-color: #666666;
    --accent-color: #333333;
    --background-color: #f8f9fa;
    --text-color: #212529;
}

/* Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff !important;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand img {
    height: 35px;
    width: auto;
    margin-right: 0.7rem;
    border-radius: 4px;
}

.navbar .navbar-nav {
    margin-right: auto;
    margin-left: 0 !important;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.7rem 1rem !important;
    border-radius: 6px;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(255,255,255,0.1);
}

.nav-link.active {
    color: #fff !important;
    background-color: rgba(255,255,255,0.15);
}

.nav-link i {
    margin-left: 0.4rem;
    font-size: 1.1rem;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: #fff;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    padding: 1rem;
}

.card-body {
    padding: 2rem;
}

/* تنسيق صفحة الدعم الفني */
.support-card-body {
    padding: 1rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    text-align: right;
    direction: rtl;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(51, 51, 51, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    color: var(--secondary-color);
}

/* Button Styles */
.btn-primary {
    background-color: #ff8c00;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #ff7000;
    transform: translateY(-1px);
}

.btn-primary:active,
.btn-primary:focus {
    background-color: #ff8c00 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.5) !important;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-dismissible .btn-close {
    padding: 1.25rem;
}

/* Form Text Styles */
.form-text {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Footer Styles */
footer {
    background-color: #dfdfdf;
    color: rgb(27 25 25 / 85%);
    padding: 1rem 0;
    margin-top: auto;
    text-align: center;
}

/* Main Styles */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1rem 0;
    margin-top: -60px;
    margin-bottom: -56px;
    min-height: calc(100vh - 0px) !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }

    .nav-link {
        padding: 0.8rem 1rem !important;
        margin: 0.2rem 0;
    }
}
