/* ============================================================
   Techno Shop - Main Frontend Stylesheet
   Theme: Light / Navy (#34495e) / Orange (#f3811f)
   Matching: https://aio.demo.joudisoft.com/
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #34495e;
    --card-bg: #ffffff;
    --accent: #f3811f;
    --accent-hover: #d67118;
    --text-primary: #333333;
    --text-secondary: #777777;
    --danger-red: #d9534f;
    --topbar-bg: #e6e6e6;
    --border-color: #dddddd;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --border-radius: 4px;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.42857143;
}

body.is-rtl { direction: rtl; text-align: right; }

a { color: var(--primary-navy); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent-orange); text-decoration: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================================
   HEADER TIER 1: TOP BAR (Gray)
   ============================================================ */
.top-bar {
    background-color: var(--topbar-gray);
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
    font-size: 13px;
    color: #444;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }

.top-social-links { display: flex; gap: 12px; }
.top-social-links a { color: #666; font-size: 14px; }
.top-social-links a:hover { color: var(--primary-navy); }

.top-user-menu { display: flex; gap: 15px; align-items: center; }
.top-user-menu a { color: #444; }
.top-user-menu a i { margin-right: 5px; color: #888; }
body.is-rtl .top-user-menu a i { margin-right: 0; margin-left: 5px; }

/* Language Selector in Topbar */
.language-selector select {
    border: 1px solid #ccc;
    background: #fff;
    padding: 2px 5px;
    font-size: 12px;
    border-radius: 2px;
    cursor: pointer;
}

/* ============================================================
   HEADER TIER 2: LOGO BOX (White)
   ============================================================ */
.header-middle {
    background: #fff;
    padding: 20px 0;
}
.header-middle .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-text { 
    font-size: 32px; 
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: -1.5px;
    color: #3c8dbc; /* Techno - Blue */
}
.logo-text span { color: #605ca8; margin-left: 2px; } /* Shop - Purple */

.header-banner { flex: 1; text-align: center; }
.header-banner img { max-width: 468px; height: auto; border: 1px solid #eee; }

.header-right-tools { display: flex; align-items: center; gap: 15px; }

/* Cart Button */
.cart-info-btn {
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fdfdfd;
    text-decoration: none;
    transition: all 0.2s;
}
.cart-info-btn:hover { background: #fff; border-color: #3c8dbc; }
.cart-info-btn i { font-size: 22px; color: #3c8dbc; }
.cart-info-btn .cart-label { font-size: 11px; text-transform: uppercase; color: #777; font-weight: 700; }
.cart-info-btn .cart-amount { font-size: 14px; font-weight: 700; color: #f3811f; }

/* Unpaid Invoices Button (Demo Style) */
.btn-unpaid {
    background-color: var(--danger-red);
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-unpaid:hover { background-color: #c9302c; }

/* Dashboard Info Boxes (Parity with Admin) */
.info-box {
    display: flex;
    min-height: 80px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.info-box:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.info-box-icon {
    width: 70px;
    background: var(--primary-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}
.info-box-content { padding: 10px 15px; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.info-box-text { font-size: 11px; text-transform: uppercase; color: #777; font-weight: 700; margin-bottom: 2px; }
.info-box-number { font-size: 20px; font-weight: 700; color: #333; }

/* Colors */
.bg-aqua .info-box-icon { background: #00c0ef; }
.bg-green .info-box-icon { background: #00a65a; }
.bg-orange .info-box-icon { background: var(--accent-orange); }

/* ============================================================
   HEADER TIER 3: NAV BAR (Dark Navy)
   ============================================================ */
.main-navbar {
    background-color: var(--secondary-bg);
    min-height: 45px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--accent);
}
.main-navbar .container { display: flex; align-items: stretch; height: 45px; }

.nav-menu { display: flex; list-style: none; height: 100%; }
.nav-menu li { height: 100%; }
.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    height: 100%;
    transition: 0.1s;
}
.nav-menu li a i { margin-right: 7px; opacity: 0.7; }
body.is-rtl .nav-menu li a i { margin-right: 0; margin-left: 7px; }

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: var(--accent);
    color: #000;
}

/* ============================================================
   TICKER (Navy/Orange) - Animated Marquee
   ============================================================ */
.ticker-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    overflow: hidden;
}
.ticker-row .container { display: flex; align-items: center; }

.ticker-label {
    background: var(--accent-orange);
    color: #fff;
    padding: 4px 15px;
    margin-right: 15px;
    position: relative;
    z-index: 10;
    white-space: nowrap;
}
.ticker-label:after {
    content: "";
    position: absolute;
    right: -10px;
    top: 0;
    border-left: 10px solid var(--accent-orange);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}
body.is-rtl .ticker-label { margin-right: 0; margin-left: 15px; }

/* Marquee Logic */
.ticker-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.ticker-move {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-marquee 30s linear infinite;
}
.ticker-move:hover { animation-play-state: paused; }

.ticker-item {
    display: inline-block;
    padding: 0 30px;
    color: #555;
    font-weight: 500;
}
.ticker-item i { color: var(--primary-navy); margin-right: 5px; }
.ticker-item a { color: inherit; }
.ticker-item a:hover { color: var(--accent-orange); }

@keyframes ticker-marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ============================================================
   HOME SLIDER & SEARCH SECTION
   ============================================================ */
.home-slider-section { margin-bottom: 0; }
/* Simulated Slider */
.main-slider {
    width: 100%;
    height: 450px;
    background: #222 url('https://via.placeholder.com/1200x450/222/fff?text=Home+Slider+Placeholder') center/cover;
    position: relative;
}

/* Large Orange Search Bar Section (matching demo) */
.home-search-section {
    background-color: #f3811f; /* Orange */
    padding: 30px 0;
    text-align: center;
}
.home-search-form { width: 100%; max-width: 800px; margin: 0 auto; }
.search-input-group {
    display: flex;
    background: #fff;
    padding: 3px;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.search-context-select {
    border: none;
    border-right: 1px solid #eee;
    padding: 0 15px;
    font-size: 13px;
    color: #666;
    background: transparent;
    outline: none;
    cursor: pointer;
    border-radius: 40px 0 0 40px;
}
.search-input-group input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    outline: none;
    background: transparent;
}
.search-input-group button {
    background: #3c8dbc;
    color: #fff;
    border: none;
    padding: 0 30px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 40px;
    transition: background 0.2s;
    font-size: 13px;
    text-transform: uppercase;
}
.search-input-group button:hover { background: #357ca5; }

/* ============================================================
   DOWNLOAD FOLDERS GRID (Folder Boxes)
   ============================================================ */
.content-section { padding: 40px 0; }
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #444;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title:before {
    content: "";
    width: 4px;
    height: 18px;
    background: var(--accent-orange);
    display: inline-block;
}

/* Account Card Styling */
.account-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    overflow: hidden;
}
.account-card-head {
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.account-card-head:before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background-color: var(--accent-orange);
}
body.is-rtl .account-card-head:before { left: auto; right: 0; }
.account-title { font-size: 16px; font-weight: 700; color: #333; margin: 0; }
.account-title i { color: var(--primary-navy); margin-right: 8px; opacity: 0.8; }
body.is-rtl .account-title i { margin-right: 0; margin-left: 8px; }

.account-card-body { padding: 20px; }

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-success { background: #27ae60; color: #fff; }
.badge-info { background: #2980b9; color: #fff; }
.badge-warning { background: #f39c12; color: #fff; }
.badge-danger { background: #c0392b; color: #fff; }

.folder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 992px) { .folder-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .folder-grid { grid-template-columns: 1fr; } }

.folder-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.2s;
    border-radius: 0 !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.folder-box:hover { 
    border-color: var(--accent); 
    box-shadow: 0 0 15px var(--accent);
    transform: translateY(-2px);
}
.folder-box:before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(0,243,255,0.05), transparent);
    pointer-events: none;
}

.folder-icon-circle {
    width: 50px;
    height: 50px;
    background: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #f39c12; /* orange folder color */
}
.folder-info h4 { font-size: 15px; color: #333; margin-bottom: 2px; }
.folder-info p { font-size: 12px; color: #888; margin: 0; }

/* ============================================================
   CATEGORIES GRID (Shop)
   ============================================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 15px;
}
.category-card:hover { border-color: var(--accent-orange); }
.category-card .cat-img {
    height: 180px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.category-card img { max-width: 80%; max-height: 80%; object-fit: contain; }
.category-card h3 { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 8px; }
.category-card p { font-size: 12px; color: #888; padding: 0 10px; height: 35px; overflow: hidden; }

/* ============================================================
   MISC UI COMPONENTS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 13px;
}
.btn-primary { background-color: var(--primary-navy); color: #fff; }
.btn-primary:hover { background-color: #2c3e50; }

/* Sticky Social Sidebar */
.sticky-social {
    position: fixed;
    left: 0;
    top: 40%;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}
.sticky-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    margin-bottom: 2px;
}
.social-wa { background: #25D366; }
.social-tg { background: #0088cc; }
.social-fb { background: #3b5998; }
.social-yt { background: #ff0000; }

body.is-rtl .sticky-social { left: auto; right: 0; }

/* ============================================================
   FOOTER (Dark Navy)
   ============================================================ */
.main-footer {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    padding: 40px 0 20px;
    border-top: 2px solid var(--accent);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 13px; }
.footer-col a { color: #bdc3c7; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.payment-icons { display: flex; gap: 8px; }
.payment-icons img { height: 25px; opacity: 0.7; }

/* RTL overrides */
body.is-rtl { direction: rtl; }
body.is-rtl .top-bar .right li { border-right: none; border-left: 1px solid #ddd; }
body.is-rtl .categories-filter .dropdown-menu { text-align: right; }
body.is-rtl #top-megamenu-nav .nav > li > a { text-align: right; }
body.is-rtl .breadcrumb { direction: rtl; }
body.is-rtl .search-area .control-group { direction: rtl; }
