/* Color Variables for Light and Dark Mode */
:root {
    --bg-color: #ffffff;
    --text-color: #1f1f1f;
    --header-bg: #f8f9fa;
    --sidebar-bg: #f0f4f9;
    --hover-color: #e2e7eb;
    --border-color: #dadce0;
    --accent-color: #0b57d0;
}

body.dark-mode {
    --bg-color: #131314;
    --text-color: #e3e3e3;
    --header-bg: #1e1f20;
    --sidebar-bg: #1e1f20;
    --hover-color: #333537;
    --border-color: #444746;
    --accent-color: #a8c7fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Header Styles */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px; /* Thin header */
    background-color: var(--header-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.brand-name-mobile {
    font-size: 1.2rem;
    font-weight: 600;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: var(--hover-color);
}

.profile-wrapper {
    position: relative;
}

.profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.profile-pic:hover {
    border-color: var(--accent-color);
}

/* Dashboard Dropdown */
.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 250px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-menu.hidden {
    display: none;
}

.dropdown-menu h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.dropdown-menu a {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px;
    border-radius: 6px;
}

.dropdown-menu a:hover {
    background-color: var(--hover-color);
}

.placeholder-text {
    font-size: 0.85rem;
    color: gray;
    font-style: italic;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 56px; /* Below the header */
    left: -280px; /* Hidden by default */
    width: 280px;
    height: calc(100vh - 56px);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow-y: auto; /* Scrollable if items overflow */
    padding: 10px;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 24px;
    margin-bottom: 5px;
    transition: background-color 0.2s;
}

.sidebar-links li a:hover {
    background-color: var(--hover-color);
}

.small-links li a {
    font-size: 0.85rem;
    padding: 8px 16px;
}

/* SEARCH BAR */
.search-bar {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 250px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 999;
}

/* hidden state */
.search-bar.hidden {
    display: none;
}

/* input style */
.search-bar input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}



/* Main Content Push */
.main-content {
    margin-top: 56px; /* Space for fixed header */
    padding: 20px;
    transition: margin-left 0.3s ease;
}


.footer{
background:#0f172a;
color:white;
padding:60px 20px;
margin-top:60px;
}

.footer-container{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:40px;
}

.footer-box h2,
.footer-box h3{
margin-bottom:15px;
}

.footer-box p{
font-size:14px;
color:#cbd5e1;
line-height:1.6;
}

.footer-box ul{
list-style:none;
padding:0;
}

.footer-box ul li{
margin:8px 0;
}

.footer-box ul li a{
color:#cbd5e1;
text-decoration:none;
transition:.3s;
}

.footer-box ul li a:hover{
color:white;
}

.social{
margin-top:20px;
display:flex;
gap:15px;
}

.social a{
display:flex;
align-items:center;
justify-content:center;
width:55px;
height:55px;
border-radius:50%;
text-decoration:none;
}

.social a i{
font-size:28px;   /* icon size */
color:white;
}

/* Colors */

.facebook{
background:#1877f2;
}

.youtube{
background:#ff0000;
}

.telegram{
background:#0088cc;
}

.whatsapp{
background:#25d366;
}

.social a:hover{
transform:scale(1.15);
box-shadow:0 6px 15px rgba(0,0,0,0.3);
transition:0.3s;
}

.newsletter-form{
display:flex;
margin-top:10px;
}

.newsletter-form input{
flex:1;
padding:10px;
border:none;
outline:none;
}

.newsletter-form button{
background:#2563eb;
color:white;
border:none;
padding:10px 15px;
cursor:pointer;
}

.footer-bottom{
text-align:center;
margin-top:40px;
border-top:1px solid #334155;
padding-top:20px;
font-size:14px;
}

.whatsapp-btn{
position:fixed;
bottom:25px;
right:25px;
background:#25D366;
color:white;
font-size:22px;
width:50px;
height:50px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
text-decoration:none;
box-shadow:0 5px 15px rgba(0,0,0,.3);
}

/* Desktop layout adjustment */
@media (min-width: 768px) {
    .sidebar { left: 0; } /* Sidebar open by default on big screens */
    .sidebar.closed { left: -280px; }
    .main-content { margin-left: 280px; }
    .main-content.expanded { margin-left: 0; }
    .brand-name-mobile { display: none; } /* Hide mobile title if sidebar is showing it */
}
