/* mandi.css - Exact copy of electrical-style.css with mandi customizations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans Devanagari', Arial, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #1a1f2e;
}

/* Sidebar - Dark theme */
.sidebar {
    width: 300px;
    background: #2d3349;
    border-right: 1px solid #404660;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    color: #e8eaf2;
}

.sidebar.collapsed {
    width: 50px;
}

.sidebar-header {
    padding: 15px;
    background: #252b3d;
    border-bottom: 1px solid #404660;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.sidebar.collapsed .sidebar-header {
    padding: 15px 10px;
}

.sidebar-title {
    font-size: 16px;
    color: #ffd966;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
    width: 0;
}

/* ===== SQUARE BUTTON STYLE ===== */
.sidebar-toggle {
    width: 30px;
    height: 30px;
    background: #404660;
    border: 1px solid #5a6077;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffd966;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
    font-weight: bold;
}

.sidebar-toggle:hover {
    background: #5a6077;
    transform: scale(1.05);
}

.sidebar.collapsed .sidebar-toggle {
    background: #5a6077;
    border-radius: 4px;
}
/* ===== END SQUARE BUTTON STYLE ===== */

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .sidebar-content {
    opacity: 0;
    pointer-events: none;
}

.section {
    margin-bottom: 25px;
}

.section h3 {
    font-size: 16px;
    margin-bottom: 18px;
    color: #ffd966;
    border-bottom: 1px solid #404660;
    padding-bottom: 10px;
}

hr {
    border: none;
    border-top: 1px solid #404660;
    margin: 25px 0;
}

.instructions {
    font-size: 13px;
    line-height: 1.6;
    color: #cbd0e0;
}

.content-info {
    font-size: 13px;
    line-height: 1.6;
    color: #cbd0e0;
    background: #252b3d;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #404660;
}

.footer {
    font-size: 11px;
    color: #8f97b3;
    text-align: center;
    border-top: 1px solid #404660;
    padding-top: 18px;
    margin-top: 25px;
}

/* Main Content */
.main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header-controls {
    position: absolute;
    top: 15px;
    left: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.page-title {
    background: rgba(45, 51, 73, 0.95);
    color: #ffd966;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid #ffd966;
    backdrop-filter: blur(5px);
}

.badge {
    background: rgba(45, 51, 73, 0.95);
    color: #ffd966;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid #5a6077;
    backdrop-filter: blur(5px);
}

#container {
    flex: 1;
    overflow: auto;
    position: relative;
    background: #1a1f2e;
    padding: 20px;
}

.content-wrapper {
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 20px;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #404660;
}

.page-header h1 {
    color: #ffd966;
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header .subtitle {
    color: #cbd0e0;
    font-size: 16px;
}

.nav-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav-link-top {
    padding: 8px 16px;
    background: #404660;
    color: #e8eaf2;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid #5a6077;
}

.nav-link-top:hover {
    background: #5a6077;
    color: #ffd966;
    transform: translateY(-2px);
}

.nav-link-top.home {
    background: #4CAF50;
    color: white;
    border-color: #45a049;
}

.nav-link-top.home:hover {
    background: #45a049;
}

/* Line Diagram Section */
.line-diagram-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.line-diagram-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.line-diagram {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.diagram-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.diagram-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.diagram-line {
    height: 3px;
    background: rgba(255,255,255,0.5);
    margin: 15px 0;
    position: relative;
}

.diagram-line::before {
    content: '';
    position: absolute;
    left: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.diagram-line::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.diagram-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.diagram-desc {
    font-size: 13px;
    opacity: 0.9;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Subjects Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.subject-card {
    background: #2d3349;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    border-left: 5px solid;
    border-top: 1px solid #404660;
    border-right: 1px solid #404660;
    border-bottom: 1px solid #404660;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.subject-card.hindi {
    border-left-color: #9C27B0;
}

.subject-card.english {
    border-left-color: #2196F3;
}

.subject-card.maths {
    border-left-color: #FF9800;
}

.subject-card.reasoning {
    border-left-color: #FF5722;
}

.subject-card.gk {
    border-left-color: #4CAF50;
}

.subject-card.coming-soon {
    border-left-color: #9E9E9E;
    opacity: 0.8;
}

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

.emoji {
    font-size: 40px;
}

.card-header h2 {
    color: #ffd966;
    font-size: 20px;
    margin: 0;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.status.available {
    background: #1e3a2e;
    color: #4caf50;
    border: 1px solid #4caf50;
}

.status.coming-soon {
    background: #333333;
    color: #ffd966;
    border: 1px solid #ffd966;
}

.description {
    color: #cbd0e0;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature {
    background: #404660;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: #e8eaf2;
    font-weight: 500;
    border: 1px solid #5a6077;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    text-align: center;
}

.btn.hindi {
    background: #9C27B0;
}

.btn.hindi:hover {
    background: #7B1FA2;
}

.btn.english {
    background: #2196F3;
}

.btn.english:hover {
    background: #1976D2;
}

.btn.maths {
    background: #FF9800;
}

.btn.maths:hover {
    background: #F57C00;
}

.btn.disabled {
    background: #404660;
    pointer-events: none;
    opacity: 0.6;
    color: #8f97b3;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #252b3d;
}

::-webkit-scrollbar-thumb {
    background: #5a6077;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6f77a0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar:not(.collapsed) {
        width: 250px;
    }
    
    .page-title {
        font-size: 14px;
        padding: 8px 15px;
    }
    
    .badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
}

/* ===== NAVIGATION STYLES - EXACT COPY FROM ELECTRICAL-STYLE.CSS ===== */
.navigation-container {
    width: 100%;
}

.nav-links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-category {
    background: #252b3d;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #ffd966;
    margin-bottom: 5px;
}

.nav-category h4 {
    color: #ffd966;
    font-size: 15px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #404660;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-category .nav-link {
    display: inline-block;
    padding: 8px 14px;
    background: #404660;
    color: #e8eaf2;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    margin: 0 8px 10px 0;
    transition: all 0.2s ease;
    border: 1px solid #5a6077;
    line-height: 1.4;
}

.nav-category .nav-link:hover {
    background: #5a6077;
    color: #ffd966;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-category .nav-link.active {
    background: #ffd966;
    color: #252b3d;
    border-color: #ffd966;
    font-weight: 600;
}

/* Extra spacing for first and last categories */
.nav-category:first-child {
    margin-top: 5px;
}

.nav-category:last-child {
    margin-bottom: 10px;
}

/* Add spacing between sections in sidebar */
.sidebar-content > .section:not(:last-child) {
    margin-bottom: 30px;
}
/* ===== END NAVIGATION STYLES ===== */

/* Add at the end of mandi.css */

/* ===== TRANSLATION BUTTON STYLES ===== */
.translation-btn {
    width: 100%;
    padding: 12px 16px;
    background: #404660;
    border: 1px solid #5a6077;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin: 5px 0;
}

.translation-btn:hover {
    background: #5a6077;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.translation-btn .btn-icon {
    font-size: 18px;
    color: #ffd966;
}

.translation-btn .btn-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffd966;
}

/* Collapsed sidebar styles */
.sidebar.collapsed .translation-btn {
    padding: 8px;
    justify-content: center;
}

.sidebar.collapsed .translation-btn .btn-text {
    display: none;
}

.sidebar.collapsed .translation-btn .btn-icon {
    font-size: 20px;
    margin: 0;
}
/* ===== END TRANSLATION BUTTON STYLES ===== */
