/* Calculator Sidebar Styles */
.calculator-sidebar {
    position: fixed;
    top: 80px;
    right: -320px;
    width: 320px;
    height: calc(100vh - 100px);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    border-left: 3px solid #0d6efd;
}

.calculator-sidebar.open {
    right: 0;
}

.sidebar-toggle {
    position: fixed;
    top: 120px;
    right: 0;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 20px;
    line-height: 1;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    padding-right: 15px;
}

.sidebar-toggle.open {
    right: 320px;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #0d6efd;
    font-weight: 600;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.sidebar-close:hover {
    color: #dc3545;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #0d6efd;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 8px;
}

.sidebar-list a {
    display: block;
    padding: 10px 12px;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.sidebar-list a:hover {
    background-color: #e7f1ff;
    color: #0d6efd;
    padding-left: 18px;
}

.sidebar-list a.active {
    background-color: #0d6efd;
    color: white;
    font-weight: 500;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    margin: 20px 0;
}

/* Quick Links Section */
.quick-links {
    background: linear-gradient(135deg, #e7f1ff 0%, #f8f9fa 100%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.quick-links h4 {
    font-size: 0.9rem;
    color: #0d6efd;
    margin-bottom: 10px;
    border: none;
    padding: 0;
}

.quick-links .btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-links .btn {
    font-size: 0.85rem;
    padding: 8px 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .calculator-sidebar {
        width: 280px;
        right: -280px;
        top: 60px;
    }
    
    .sidebar-toggle.open {
        right: 280px;
    }
    
    .sidebar-toggle {
        top: 100px;
        padding: 12px 8px;
        font-size: 18px;
    }
}

/* Scroll bar styling */
.calculator-sidebar::-webkit-scrollbar {
    width: 8px;
}

.calculator-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.calculator-sidebar::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 4px;
}

.calculator-sidebar::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}
