* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #5642f3;
    --primary-gradient: linear-gradient(135deg, #ff4e7e, #ff2a5f);
    --secondary: #6c757d;
    --success: #28a745;
    --background: #fafafa;
    --card-bg: #ffffff;
    --text-primary: #000000;
    --text-secondary: #666666;
    --border-color: #e6e6e6;  
    --profilecard: #fafafa;  
    --error: #dc3545;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --tab-border: #ccc;
    --theme-bg: #ffffff;
    --logo-bg: #ffffff;
    --nav-item: #673AB7;
    --top-icons: #9a7bd1;
    --top-icon-hover: #7552b3;
}

.dark-theme {
    --primary: #ff4e7e;
    --primary-gradient: linear-gradient(135deg, #ff2a5f, #ff4e7e);
    --secondary: #a0a0a0;
    --success: #34ce57;
    --background: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #94a3b8;
    --text-secondary: #bbbbbb;
    --border-color: #333333;
    --error: #dc3545;
    --profilecard: #1e293b99;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --tab-border: #333;
    --theme-bg: #121212;
    --logo-bg: #121212;
    --nav-item: #ffffff;
    --top-icons: #ffffff33;
    --top-icon-hover: #ffffff4d;
}

.bi-power {
    font-weight: 900;
}

body {       
    background: var(--background);
    color: var(--text-primary);          
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
}

.theme-toggle {
    background-color: var(--top-icons);
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 20px;
}

.theme-toggle:hover {
    background-color: var(--top-icon-hover);
}

.app-container {
    width: 100%;           
    height: 100vh;
    /*background: linear-gradient(165deg, #e82182 0%, #5642f3 100%);*/
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header Styles */
.header {
    background: var(--theme-bg);
    backdrop-filter: blur(10px);
    padding: 18px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
    box-shadow: inset 0 12px 45px -5px #673AB7;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo{
    width:150px;
    /*background: #fff;*/
    /* padding: 0px; */
    border-radius: 5px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    /*background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.4rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-action {
    background-color: var(--top-icons);
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 20px;
}

.header-action:hover {
    background-color: var(--top-icon-hover);
}

.notification-badge {
    position: absolute;
    top: 16px;
    right: 55px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f211ae;
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f211ae;
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
   /* padding: 10px; */
    position: relative;
}

.page-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #818cf8;
    text-align: center;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.page-text {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
}

.card {
     background: var(--background);
    color: var(--text-primary); 
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-title i {
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem;
    margin-right: 12px;
}

.card-title h3 {
    font-weight: 600;
    font-size: 1.1rem;   
    color: var(--text-primary); 
}

.card p {
    color: var(--text-primary); 
    font-size: 0.9rem;
    line-height: 1.5;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: -5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(to right, #818cf8, #c084fc);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item.active::before {
    opacity: 1;
}

.nav-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--nav-item); 
    transition: all 0.3s ease;
}

.nav-item.active .nav-icon {   
    background: linear-gradient(to bottom, #818cf8, #c084fc);
    -webkit-background-clip: text;
    color: #ed1f7d;
   
}

.nav-icon.active {
    color: #ed1f7d;   
    
}

.nav-label {
    font-size: 0.7rem;
    color: var(--nav-item); 
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item.active .nav-label {
    color: #ed1f7d;
}

.nav-item.active {
    /*background: #d83e8d;*/
    /*box-shadow: 0 5px 15px #e82182; */
    background: transparent;   
    /*box-shadow: 0 1px 5px #9C27B0; */
}

.nav-center {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8 0%, #ed1f7d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    /*box-shadow: 0 5px 20px rgb(216 62 141); */
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    bottom:20px;
    border: 6px solid #ffff;
}

.nav-center:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px #d83e8d;
}

/* Loader Animation */
.loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid #d83e8d;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item.loading .loader {
    opacity: 1;
}

.nav-center.loading .loader {
    border-top: 2px solid #ffffff;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 340px) {
    .header {
        padding: 15px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .header-action {
        width: 35px;
        height: 35px;
    }
    
    .nav-item {
        width: 50px;
    }
    
    .nav-center {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .app-container {   
        height: 100vh;
    }
}

/* spinners & loaders */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.wave-page span {
  width: 8px;
  height: 40px;
  background: #4361ee;
  animation: wave 1.2s infinite;
}

.spinner-page {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(67,97,238,0.2);
  border-top-color: #4361ee;
  animation: spin 1.2s infinite;
}

.progress-page::after {
  content: '';
  width: 40%;
  background: #4361ee;
  animation: progress 1.5s infinite;
}

.dots span {
  width: 8px;
  height: 8px;
  background: white;
  animation: bounce 1.5s infinite;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  animation: spin 1s infinite;
}

.pulse {
  width: 20px;
  height: 20px;
  background: white;
  animation: pulse 1.5s infinite;
}

/* theme Scrollbar */
.theme-scrollbar {
    overflow-y: auto;
}

.theme-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.theme-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.theme-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8e2de2, #4a00e0);
    border-radius: 10px;
}

.theme-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7a1ed0, #3a00b0);
}

body::-webkit-scrollbar {
    width: 6px; /* Slim scrollbar */
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8e2de2, #4a00e0);
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7a1ed0, #3a00b0);
}

.grid-photos{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
}


