/* Battery Shop Management - Centralized Styles */

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
}

.nav-item {
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-item:hover {
    background: #f3f4f6;
    color: #374151;
    transform: translateY(-1px);
}

.nav-item.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.nav-item i {
    font-size: 14px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.transaction-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 120px;
}

.transaction-type-btn:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.transaction-type-btn.active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.transaction-type-btn i {
    color: #64748b;
}

.transaction-type-btn.active i {
    color: #3b82f6;
}

.transaction-form {
    display: block;
}

.transaction-form.hidden {
    display: none;
}

.input-field {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    width: 100%;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.table td {
    border-bottom: 1px solid #f1f5f9;
    padding: 16px;
    color: #4b5563;
    font-size: 14px;
}

.table tr:hover {
    background: #fafbfc;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-label {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}

/* Filter Buttons for Statements */
.filter-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 14px;
}

.filter-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.filter-btn.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

.filter-btn i {
    margin-right: 8px;
}

/* Subcategory Buttons */
.subcategory-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.subcategory-btn:hover {
    border-color: #6366f1;
    background: #f0f4ff;
    color: #6366f1;
}

.subcategory-btn.active {
    border-color: #6366f1;
    background: #6366f1;
    color: white;
}

/* GST Toggle Switch */
#gst-toggle:checked + div {
    background: #3b82f6;
}

#gst-toggle:checked + div .dot {
    transform: translateX(100%);
    background: white;
}

.dot {
    transition: all 0.3s ease;
}