@import url('../../fonts/fonts.css');

html, body { 
    height: 100%;
    margin: 0;
}

body {
    font-family: 'kufi';
    direction: rtl;
    text-align: right;
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: #4d4d4d;
    background-color: #f6f6f6;
    background-image: url('patterns/pattern.png');
    background-repeat: repeat;
    background-position: center;
    background-size: 1141px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
}

.tab-title { font-size: 2rem; font-weight: bold; color: #b68a35; margin-bottom: 24px; text-align: right; }
.ih-form .form-label { font-weight: 500; color: #6c5b2a; }
.btn-gold { background: #b68a35; color: #fff; font-weight: 600; border: none; border-radius: 6px; padding: 10px 32px; min-width: 120px; }
.btn-gold:hover { background: #a67c2e; }

.footer { 
    background: transparent;
    border-top: 1px solid #eee; 
    margin-top: auto;
    flex-shrink: 0;
}

.palace-logo img { max-width: 120px; margin: 0 auto 12px auto; display: block; }
.footer-line { border-top: 1px solid #e0cfa2; margin: 12px 0; }
.footer-links { text-align: center; margin-bottom: 8px; }
.footer-item { color: #b68a35; margin: 0 8px; text-decoration: none; font-weight: 500; }
.footer-item:hover { color: #a67c2e; }
.footer-addres { text-align: center; margin-bottom: 8px; }
.copyrights { text-align: center; color: #6c5b2a; font-size: 0.95rem; margin-bottom: 8px; }

/* Header Styles */
.header {
    background-image: url('patterns/new-header.png');
    background-position: top center;
    background-repeat: repeat-x;
    position: relative;
    z-index: 3;
    background-color: #f3f3f3;
    flex-shrink: 0;
}

.r { float: right; }
.l { float: left; }

a.year-logo { left: 0; }

.left-nav, a.logo { float: right; }
.right-nav { float: left; }

.nav-links.right-nav { padding-right: 30px; }

.site-settings {
    float: left;
    padding-left: 10px;
}

header a.nav-lang span {
    margin-left: 4px;
    padding-right: 9px;
    margin-right: 10px;
    border-right: solid 1px #eae3e3;
    font-size: .7rem;
    line-height: 1.5;
    display: inline-block;
}

header .nav-links a.nav-item span {
    border-left: solid 1px #eae3e3;
}

a.nav-lang {
    direction: ltr;
    text-align: left;
}

/* Logo Styles */
.logo-site { 
    display: block;
    width: 180px;
    padding: 20px;
    box-shadow: 0 5px 20px #dbd6d6;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background-image: linear-gradient(rgba(255,255,255,.02),#fffbfb);
}

#homeLogo {
    display: block;
    width: 180px;
    padding: 20px;
    box-shadow: 0 5px 20px #dbd6d6;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background-image: linear-gradient(rgba(255,255,255,.02),#fffbfb);
    text-align: center;
}

#homeLogo img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Navigation Styles */
.menuAdmin {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 120px;
}

.left-nav {
    width: 35%;
    flex-shrink: 0;
    order: 1;
}

.logo-container {
    width: 180px;
    flex-shrink: 0;
    order: 2;
}

.right-nav {
    width: 35%;
    flex-shrink: 0;
    order: 3;
}

.left-nav, .right-nav {
    width: calc(50% - 90px);
}

.nav-links {
    position: relative;
    border-top: solid 1px #ded0af;
    border-bottom: solid 1px #ded0af;
    top: 79px;
}

.nav-links a.nav-item {
    color: #b68a35;
    font-weight: bold;
    display: inline-block;
    border-bottom: solid 1px transparent;
    transition: all 100ms;
}

.nav-links a.nav-item.active, .nav-links a.nav-item:hover {
    border-color: #b68a35;
}

.nav-links a.nav-item span {
    font-size: .75rem;
    line-height: 1.5;
    padding: 0 15px;
    margin: 10px 0;
    display: inline-block;
    min-width: 64px;
    text-align: center;
}

.nav-links {
    position: relative;
    border-top: solid 1px #ded0af;
    border-bottom: solid 1px #ded0af;
    top: 40px;
    padding: 0 20px;
}

.logo-container {
    width: 180px;
    flex-shrink: 0;
    order: 2;
}

.nav-search {
    font-size: .75rem;
    line-height: 1.5;
    color: #b68a35;
    font-weight: bold;
    display: inline-block;
    margin: 10px 0;
    cursor: pointer;
}

/* Top Level Navigation */
.top-level {
    position: relative;
    display: inline-block;
}

.top-level:hover {
    background-color: #fff;
}

.top-level:hover .sub-menu {
    display: block;
}

.top-level .sub-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 5px 8px #dad5d5;
    z-index: 999;
    width: 200%;
}

.top-level .nav-subitem {
    display: block;
    font-size: .75rem;
    line-height: 1.5;
    padding: 8px 0;
    border-bottom: solid 1px #ddd;
}

.top-level .sub-menu .nav-subitem:last-child {
    border: none;
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    header .nav-toggle {
        display: block !important;
    }
    
    header .nav-links a.nav-item, header .nav-links .top-level {
        display: none !important;
    }
    
    header a.mobile-logo {
        display: block !important;
    }
    
    header a.logo {
        display: none !important;
    }
    
    header .nav-links {
        top: 0 !important;
        padding: 0 !important;
        width: 50% !important;
    }
    
    .top-level {
        display: block !important;
    }
    
    .top-level .nav-item span {
        border-bottom: none !important;
    }
    
    .sub-menu {
        position: relative !important;
        width: auto !important;
        margin: 0 30px;
    }
}

@media screen and (min-width: 1200px) {
    .sub-menu {
        top: 40px;
    }
}

/* Tabs and Content */
.tabs-col { 
    padding: 0; 
    margin-top: 25px;
}

.tabs {
    background: #faf9f7;
    border-radius: 12px;
    padding: 32px 12px 12px 12px;
    margin-top: 25px;
}

.main-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 32px 24px;
    margin: 25px 0;
}

.tab-link { 
    display: block; 
    color: #b68a35; 
    text-decoration: none; 
    padding: 10px 0; 
    font-weight: 500; 
    border-bottom: 1px solid #eee; 
    text-align: right; 
}

.tab-link.selected-tab, .tab-link:hover { 
    color: #fff; 
    background: #b68a35; 
    border-radius: 6px; 
    padding-right: 8px; 
}

.tabs-layout {
    padding-top: 25px;
    padding-bottom: 30px;
}

.col-lg-9.col-md-8.col-12 {
    margin-top: 25px;
}

@media (max-width: 991px) {
    .main-content { padding: 16px 8px; }
    .tabs-col { padding: 12px 4px; }
}

/* General Styles */
* {
    outline: none !important;
    box-sizing: border-box;
}

a {
    color: #b68a35;
}

a:visited {
    color: #b68a35;
}

a:hover {
    color: #9e7331;
} 