/* Pastel Feminine Theme - KasFlow */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');
:root {
    --primary-color: #f472b6; /* soft pink */
    --primary-dark: #be185d;
    --secondary-color: #fdf2f8; /* pink bg */
    --accent-color: #a78bfa; /* lavender */
    --success-color: #6ee7b7; /* mint */
    --warning-color: #fdba74; /* peach */
    --danger-color: #f87171; /* soft red */
    --info-color: #60a5fa; /* baby blue */
    --text-color: #5b5560;
    --text-light: #a1a1aa;
    --bg-color: #fdf6fb;
    --card-bg: #fff;
    --border-color: #f3e8ff;
    --shadow: 0 4px 24px rgba(244,114,182,0.10);
}

body {
    font-family: 'Nunito', 'Poppins', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 220px;
    background: linear-gradient(135deg, #fdf2f8 0%, #f472b6 100%);
    color: #be185d;
    z-index: 100;
    transition: width 0.3s;
    box-shadow: var(--shadow);
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-header {
    padding: 32px 0 16px 0;
    text-align: center;
    border-bottom: 1px solid #fbcfe8;
}

.sidebar-header img {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(244,114,182,0.15));
}

.sidebar-header.collapsed img {
    width: 40px;
}

.nav-menu {
    padding: 24px 0;
}

.nav-link {
    padding: 14px 28px;
    color: #be185d !important;
    display: flex;
    align-items: center;
    font-size: 1.08rem;
    border-radius: 16px;
    margin-bottom: 10px;
    transition: background 0.2s, color 0.2s;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-link i {
    margin-right: 16px;
    font-size: 24px;
}

.nav-link:hover, .nav-link.active {
    background: linear-gradient(90deg, #fbcfe8 0%, #a78bfa 100%);
    color: #fff !important;
}

.nav-menu .nav-item {
    margin-bottom: 0.1rem !important;
    padding-top: 0.05rem !important;
    padding-bottom: 0.05rem !important;
}

.sidebar .nav .nav-link {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
    margin-bottom: 0.05rem !important;
}

.sidebar .nav .nav-link i {
    font-size: 1.1rem !important;
}

.sidebar .nav .nav-link span {
    font-size: 0.92rem !important;
}

/* Main Content */
.main-content {
    margin-left: 220px;
    padding: 36px 24px 24px 24px;
    min-height: 100vh;
    background: var(--bg-color);
    transition: margin-left 0.3s;
}

.main-content.expanded {
    margin-left: 60px;
}

/* Header */
.content-header {
    background: var(--card-bg);
    padding: 24px 32px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--primary-dark);
}

/* Cards */
.card {
    border: none;
    border-radius: 22px;
    box-shadow: var(--shadow);
    background: var(--card-bg);
    margin-bottom: 28px;
    transition: transform 0.18s;
}

.card:hover {
    transform: translateY(-4px) scale(1.01);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 28px 14px 28px;
}

.stat-card {
    padding: 32px 20px;
    border-radius: 22px;
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
    font-size: 1.1rem;
}

.stat-card.income {
    background: var(--success-color);
    color: #065f46;
}

.stat-card.expense {
    background: var(--danger-color);
    color: #7f1d1d;
}

.stat-card.debt {
    background: var(--info-color);
    color: #1e293b;
}

.stat-card.balance {
    background: var(--accent-color);
    color: #fff;
}

/* Tables */
.table {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    font-size: 1.01rem;
}

.table thead th {
    background: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
    color: var(--primary-dark);
    font-weight: 700;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fdf2f8;
}

/* Forms */
.form-control {
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    padding: 14px 18px;
    font-size: 1.05rem;
    background: #fdf6fb;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.18rem rgba(167,139,250,0.18);
}

/* Buttons */
.btn {
    border-radius: 16px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background 0.18s, color 0.18s;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
    color: #065f46;
}

.btn-success:hover {
    background: #34d399;
    border-color: #34d399;
    color: #065f46;
}

.btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: #fff;
}

.btn-danger:hover {
    background: #be123c;
    border-color: #be123c;
    color: #fff;
}

.alert {
    border-radius: 14px;
    font-size: 1.05rem;
}

/* Table Styling */
.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 0.75rem;
}

.table td {
    vertical-align: middle;
    padding: 0.75rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0,0,0,.02);
}

.table-striped > tbody > tr:hover > td {
    background-color: rgba(0,0,0,.075);
}

/* Status Badge Styling */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Card Header Styling */
.card-header.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    border-bottom: none;
}

.card-header h5 {
    font-weight: 600;
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert i {
    margin-right: 0.5rem;
}

/* Modal Styling */
.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 20px 28px;
    text-align: center;
    margin-top: 44px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 900px) {
    .main-content {
        padding: 18px 6px 6px 6px;
    }
    
    .sidebar {
        width: 60px;
    }
    
    .main-content, .main-content.expanded {
        margin-left: 60px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .sidebar-header img {
        width: 40px;
    }
    
    .sidebar:hover {
        width: 220px;
    }
    
    .sidebar:hover .nav-link span {
        display: inline;
    }
    
    .sidebar:hover .sidebar-header img {
        width: 90px;
    }
}

@media (max-width: 600px) {
    .sidebar {
        display: none;
    }
    
    .main-content, .main-content.expanded {
        margin-left: 0;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .btn-sm {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Search Form Styles */
.search-form {
    background: linear-gradient(135deg, #fdf2f8 0%, #fbcfe8 100%);
    border: 1px solid #fbcfe8;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.search-form .input-group {
    box-shadow: 0 2px 8px rgba(244,114,182,0.1);
    border-radius: 12px;
    overflow: hidden;
}

.search-form .input-group-text {
    background: linear-gradient(90deg, #f472b6 0%, #a78bfa 100%);
    border: none;
    color: white;
    font-weight: 600;
}

.search-form .form-control {
    border: 1px solid #fbcfe8;
    border-left: none;
    padding: 12px 16px;
    font-size: 1rem;
}

.search-form .form-control:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 0.2rem rgba(167,139,250,0.25);
}

.search-form .btn {
    border-radius: 0 12px 12px 0;
    padding: 12px 20px;
    font-weight: 600;
}

.search-results-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.search-results-info .badge {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600;
}

.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.no-data-message i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 16px;
    display: block;
}

.no-data-message p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Small Search Form Styles */
.search-form-small {
    min-width: 300px;
}

.search-form-small .input-group-sm {
    box-shadow: 0 2px 8px rgba(244,114,182,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.search-form-small .input-group-text {
    background: linear-gradient(90deg, #f472b6 0%, #a78bfa 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.search-form-small .form-control {
    border: 1px solid #fbcfe8;
    border-left: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    height: calc(1.5em + 0.75rem + 2px);
}

.search-form-small .form-control:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 0.2rem rgba(167,139,250,0.25);
}

.search-form-small .btn-sm {
    border-radius: 0 8px 8px 0;
    padding: 0.375rem 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    height: calc(1.5em + 0.75rem + 2px);
}

/* Responsive untuk search form kecil */
@media (max-width: 768px) {
    .search-form-small {
        min-width: 250px;
    }
    
    .search-form-small .form-control {
        font-size: 0.8rem;
    }
    
    .search-form-small .btn-sm {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .search-form-small {
        min-width: 200px;
    }
    
    .search-form-small .form-control {
        font-size: 0.75rem;
    }
    
    .search-form-small .btn-sm {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Profile Avatar Styles */
.profile-avatar {
    position: relative;
    display: inline-block;
}

.profile-avatar img {
    transition: transform 0.3s ease;
}

.profile-avatar img:hover {
    transform: scale(1.05);
}

.profile-avatar .upload-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(244, 114, 182, 0.9);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar .upload-overlay:hover {
    background: rgba(190, 24, 93, 0.9);
    transform: scale(1.1);
}

.profile-avatar .upload-overlay i {
    font-size: 14px;
}

/* File upload styling */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--card-bg);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control[type="file"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(244, 114, 182, 0.25);
}

.form-control[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-control[type="file"]::-webkit-file-upload-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
    transform: translateY(-1px);
} 