/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */
:root {
  --brand-primary: #6f3cff;   /* بنفسجي */
  --brand-secondary: #00c389; /* أخضر */
}

.btn-primary,
.bg-primary {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

a {
  color: var(--brand-primary);
}

.badge-success,
.text-success {
  color: var(--brand-secondary) !important;
}
/* Hover effects */
.btn-primary:hover {
  opacity: 0.9;
}

/* Invoice status */
.invoice-status-unpaid {
  color: #ff3b3b !important;
}

.invoice-status-paid {
  color: var(--brand-secondary) !important;
}

/* Navbar */
.navbar-main {
  background-color: var(--brand-primary) !important;
}
/* Logo size fix */
.navbar-brand img {
    max-height: 55px !important;  /* جرّب 55 أو 60 */
    width: auto !important;
}

.navbar-brand {
    height: auto !important;
}

.navbar-brand img {
    max-height: 80px !important;
    width: auto !important;
}

/* ===== FIX HEADER RTL (LANGUAGE + NOTIFICATIONS + LOGO) ===== */

#header {
    direction: rtl;
}

/* اللوجو */
#header .logo {
    float: right;
    margin-right: 0;
    margin-left: 20px;
}

#header .logo img {
    max-height: 48px; /* كبرنا اللوجو شوية */
    width: auto;
}

/* القائمة العلوية (لغة – إشعارات – خروج) */
#header .top-nav {
    float: left;
    margin-left: 0;
    margin-right: auto;
}

/* عناصر القائمة */
#header .top-nav > li {
    float: right;
    margin-left: 10px;
    margin-right: 0;
}

/* القوائم المنسدلة */
#header .top-nav .dropdown-menu,
#header .popover {
    right: auto;
    left: 0;
    text-align: right;
}

/* زر الخروج */
#header .top-nav .primary-action .btn {
    padding: 6px 14px;
}

/* منع أي تداخل */
#header .container::after {
    content: "";
    display: block;
    clear: both;
}

/* ===== FOOTER SIMPLE RTL FIX ===== */

#footer {
    direction: rtl;
    text-align: center;
    background-color: #0b3a57;
    padding: 30px 0;
    color: #ffffff;
}

/* نص حقوق النشر */
#footer p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* زر الرجوع للأعلى */
#footer .back-to-top {
    display: inline-block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 16px;
}

#footer .back-to-top:hover {
    color: var(--brand-secondary);
    text-decoration: none;
}


/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #6f3cff, #00c389);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    direction: rtl;
}

.welcome-banner h1 {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 15px;
}

.welcome-banner p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.welcome-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.welcome-actions .btn {
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 16px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #6f3cff;
}

