/* Dashboard Layout Styles */
.text-muted {
    color: #bfc9d1 !important;
}
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    min-width: 250px;
    max-width: 250px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #000428 100%);
    color: white;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.collapsed {
    margin-left: -250px;
}

.sidebar-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar ul {
    padding: 20px 0;
}

.sidebar ul li {
    margin: 0;
}

.sidebar ul li a {
    padding: 15px 20px;
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar ul li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
}

.sidebar ul li.active a {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-left-color: white;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .navbar-nav {
    flex-direction: column;
}

.sidebar-footer .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 8px 0;
}

.sidebar-footer .nav-link:hover {
    color: white !important;
}

.sidebar-footer .btn-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    padding: 8px 0;
}

.sidebar-footer .btn-link:hover {
    color: white !important;
}

.content {
    width: 100%;
    padding: 0;
    margin-left: 250px;
    transition: all 0.3s ease;
    min-height: 100vh;
}

.content.expanded {
    margin-left: 0;
}

.main-content {
    padding: 30px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 70px);
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-card {
    text-align: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #000428 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.stat-card:hover::before {
    top: -30%;
    right: -30%;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.stat-card .stat-label {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.stat-card.income {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.stat-card.expense {
    background: linear-gradient(135deg, #ff4b1f 0%, #ff9068 100%);
}

.stat-card.net {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 50%, #000428 100%);
}

.recent-items {
    max-height: 400px;
    overflow-y: auto;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-item-info h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.recent-item-info p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.recent-item-amount {
    font-weight: bold;
    font-size: 1.1rem;
}

.amount-positive {
    color: #28a745;
}

.amount-negative {
    color: #dc3545;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #000428 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4b1f 0%, #ff9068 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
}

/* Custom Outline Button Styling */
.btn-outline-primary {
    color: #1e3c72 !important;
    border-color: #1e3c72 !important;
}

.btn-outline-primary:hover {
    color: white !important;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    border-color: #1e3c72 !important;
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(30, 60, 114, 0.25) !important;
}

.btn-outline-primary:active {
    color: white !important;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%) !important;
    border-color: #1e3c72 !important;
}

/* Table Styles */
.table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.table thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #000428 100%);
    color: white;
}

.table th {
    border: none;
    font-weight: 600;
    padding: 20px 15px;
}

.table td {
    border: none;
    padding: 15px;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Form Styles */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.25);
}

/* Enhanced Authentication Styles */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 30%, #004e92 70%, #000428 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    margin-bottom: 0;
}

/* Enhanced Form Controls */
.auth-card .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.auth-card .form-control:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 0 0.25rem rgba(30, 60, 114, 0.25);
    background-color: white;
    transform: translateY(-2px);
}

.auth-card .form-control::placeholder {
    color: #adb5bd;
    font-size: 14px;
}

.auth-card .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.auth-card .form-label i {
    color: #1e3c72;
}

/* Enhanced Buttons */
.auth-card .btn {
    border-radius: 12px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #000428 100%);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}

.auth-card .btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.3);
}

.auth-card .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(86, 171, 47, 0.4);
}

/* Enhanced Links */
.auth-card a {
    color: #1e3c72;
    transition: all 0.3s ease;
    font-weight: 500;
}

.auth-card a:hover {
    color: #2a5298;
    transform: translateX(3px);
}

/* Form Check Styling */
.auth-card .form-check-input {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    width: 18px;
    height: 18px;
}

.auth-card .form-check-input:checked {
    background-color: #1e3c72;
    border-color: #1e3c72;
}

.auth-card .form-check-label {
    font-size: 14px;
    color: #6c757d;
    margin-left: 8px;
}

/* Enhanced Input Group */
.auth-card .input-group-text {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #000428 100%);
    color: white;
    border: none;
    border-radius: 12px 0 0 12px;
    font-weight: 600;
}

/* Error Styling */
.auth-card .text-danger {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.auth-card .alert-danger {
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa8a8 100%);
    color: white;
    font-weight: 500;
}

/* Animations */
.auth-card {
    animation: slideUp 0.6s ease-out;
}

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

/* Custom Badge Styling */
.badge.bg-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
}

.badge.bg-primary:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%) !important;
}

/* Custom Text Colors */
.text-primary {
    color: #1e3c72 !important;
}

/* Mobile Navigation Styles */
.mobile-nav {
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 1030;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #1e3c72;
    text-decoration: none;
}

.mobile-nav-link i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.mobile-nav-link span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Sidebar responsive adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -250px;
        z-index: 1040;
    }
    
    .sidebar.show {
        margin-left: 0;
        box-shadow: 3px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .content {
        margin-left: 0;
        padding-bottom: 80px; /* Space for mobile nav */
    }
    
    .main-content {
        padding: 15px;
    }
    
    .sidebar .nav-text {
        display: none;
    }
    
    .sidebar {
        min-width: 70px;
        max-width: 70px;
    }
    
    .sidebar.show {
        min-width: 250px;
        max-width: 250px;
    }
    
    .sidebar.show .nav-text {
        display: inline;
    }
}

/* Enhanced responsive design */
@media (max-width: 767.98px) {
    .stat-card .stat-value {
        font-size: 2rem;
    }
    
    .dashboard-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .table-responsive {
        border: none;
        box-shadow: none;
    }
    
    .table {
        margin-bottom: 0;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .form-control {
        padding: 10px 12px;
    }
}

@media (max-width: 575.98px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-card {
        padding: 25px 15px;
        margin: 5px;
    }
    
    .stat-card .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .dashboard-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .btn-group .btn {
        padding: 6px 10px;
    }
    
    .recent-item {
        padding: 10px 0;
    }
    
    .category-breakdown {
        padding: 12px;
    }
}

/* Mobile table improvements */
@media (max-width: 767.98px) {
    .table thead th {
        padding: 15px 8px;
        font-size: 0.9rem;
    }
    
    .table tbody td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

/* Color preview responsive size */
.color-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575.98px) {
    .color-preview {
        width: 16px;
        height: 16px;
    }
}

/* Progress bar responsiveness */
.progress-thin {
    height: 4px;
    border-radius: 2px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-thin .progress-bar {
    transition: width 0.6s ease;
}

/* Mobile-friendly spacing adjustments */
@media (max-width: 991.98px) {
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}
