/* ============================================
   Ministry of National Economy - Custom CSS
   Bootstrap 5.3 RTL loaded from CDN
   ============================================ */

:root {
    --primary-color: #0B6B3A;
    --primary-hover: #08532c;
    --secondary-color: #D4AF37;
    --secondary-light: #FCF8E3;
    --text-dark: #2B2B2B;
    --text-muted: #6C757D;
    --bg-light: #F4F6F4;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.3s ease;
}

body {
    font-family: 'Cairo', sans-serif !important;
    background-color: #F4F6F4;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Header */
.gov-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #05341C 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    border-bottom: 5px solid var(--secondary-color);
}

.gov-top-bar {
    background-color: #05341C;
    height: 5px;
    width: 100%;
}

/* Hero Hub */
.hero-hub {
    background: linear-gradient(135deg, var(--primary-color) 0%, #05341C 100%);
    color: white;
    padding: 5rem 0 8rem 0;
    position: relative;
    text-align: center;
}

.hero-hub::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Search */
.search-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: -3rem;
    z-index: 10;
    position: relative;
}

/* Buttons */
.btn-gov-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    transition: var(--transition-smooth);
}

.btn-gov-primary:hover {
    background-color: var(--primary-hover);
    color: white;
}

.btn-gov-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-gov-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Filters */
.filter-select {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 0.6rem 1rem;
}

.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(11, 107, 58, 0.25);
}

/* Category Cards */
.category-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(11, 107, 58, 0.15);
}

.category-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(11, 107, 58, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.category-card:hover .category-icon-wrapper {
    background-color: var(--primary-color);
    color: white;
}

/* Document Cards */
.document-card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.doc-badge {
    background-color: rgba(212, 175, 55, 0.15);
    color: #8A6D1C;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}

/* Registry Cards */
.doc-card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 3px solid transparent;
}

.doc-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Tables */
.gov-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.gov-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
}

/* Registry Specific */
.stat-box {
    background: rgba(11, 107, 58, 0.05);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(11, 107, 58, 0.1);
}

.page-header-box {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    border-right: 5px solid var(--primary-color);
}

.sub-search-box {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
}

/* Breadcrumbs */
.gov-nav-banner {
    background-color: #05341C;
    color: #E0E0E0;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    border-bottom: 3px solid var(--secondary-color);
}

.gov-nav-banner a {
    color: white;
    text-decoration: none;
}

/* Gateway Cards */
.gateway-container {
    margin-top: -5rem;
    position: relative;
    z-index: 10;
}

.gateway-card {
    background: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    overflow: hidden;
    height: 100%;
}

.gateway-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 107, 58, 0.15);
}

.gateway-icon-header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    transition: var(--transition-smooth);
}

.card-blue-theme .gateway-icon-header {
    background-color: rgba(13, 110, 253, 0.05);
    color: #0D6EFD;
}

.card-blue-theme:hover .gateway-icon-header {
    background-color: #0D6EFD;
    color: white;
}

.card-green-theme .gateway-icon-header {
    background-color: rgba(11, 107, 58, 0.05);
    color: var(--primary-color);
}

.card-green-theme:hover .gateway-icon-header {
    background-color: var(--primary-color);
    color: white;
}

/* Info Bar */
.info-bar {
    background-color: #FFF;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border-right: 4px solid var(--secondary-color);
}

.stat-badge {
    background-color: #F8F9FA;
    border: 1px solid #EAEAEA;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Toast */
.toast-container-gov {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1060;
}

/* Footer */
.gov-footer {
    background-color: #111;
    color: #aaa;
    padding: 2rem 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--secondary-color);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0B6B3A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #08532c;
}
