@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #a27e50;
    --primary-hover: #8f6e45;
    --bg-auth: #0f1c2b;
    --bg-main: #f8f9fa;
    --sidebar-bg: #1e293b;
    --sidebar-text: #94a3b8;
    --sidebar-active: #a27e50;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Auth Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-auth);
    padding: 2rem;
    position: relative;
}

.auth-logo {
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 4px;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 440px;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.auth-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.auth-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(198, 166, 103, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Main Layout */
.layout-main {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-main);
}

.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.sidebar-brand h3 {
    font-size: 1rem;
    font-weight: 700;
}

.sidebar-brand p {
    font-size: 0.75rem;
    color: var(--sidebar-text);
}

.sidebar-menu {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
}

.sidebar-menu-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.menu-label {
    padding: 1.5rem 0.75rem 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sidebar-text);
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: var(--transition);
    font-size: 0.9rem;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-item.active {
    background: var(--primary);
    color: white;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-weight: 600;
}

.user-info p {
    font-size: 0.85rem;
    font-weight: 500;
}

.user-info span {
    font-size: 0.75rem;
    color: var(--sidebar-text);
}

/* Main Content area */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2.5rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.page-title p {
    color: #748393;
    font-size: 1.1rem;
    font-weight: 400;
}

.btn-action {
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid #edf2f7;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.9rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: #def7ec; color: #03543f; }
.badge-danger { background: #fde8e8; color: #9b1c1c; }

.status-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs i {
    font-size: 0.7rem;
    margin: 0 0.25rem;
    color: #ced4da;
}

.breadcrumbs span {
    color: #a27e50;
    font-weight: 500;
}

/* Enhanced Form Controls */
.form-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 992px) {
    .form-row-2col {
        grid-template-columns: 1fr 1fr;
    }
}

.form-label-premium {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.9rem;
}

.form-label-premium i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    display: flex;
    justify-content: center;
}

.form-control-premium {
    width: 100%;
    height: 54px;
    padding: 0.8rem 1.25rem;
    border: 1.5px solid #f1f3f5;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: var(--transition);
    background-color: white !important;
}

.form-control-premium::placeholder {
    color: #adb5bd;
}

textarea.form-control-premium {
    height: auto;
    min-height: 120px;
    padding-top: 1rem;
}

.form-control-premium:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(162, 126, 80, 0.08);
}

.money-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.money-prefix {
    position: absolute;
    left: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
}

.money-input {
    padding-left: 3rem !important;
    font-weight: 600;
    color: var(--text-dark);
    background-color: white !important;
}

/* Select2 Customization */
.select2-container--default .select2-selection--single {
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 1.25rem !important;
    border: 1.5px solid #f1f3f5 !important;
    border-radius: 12px !important;
    background-color: white !important;
    transition: var(--transition) !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(162, 126, 80, 0.08) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-dark) !important;
    font-size: 1rem !important;
    padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 1rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #adb5bd transparent transparent transparent !important;
    border-width: 6px 4px 0 4px !important;
}

.select2-dropdown {
    border: 1px solid #f1f3f5 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    overflow: hidden;
    z-index: 9999;
}

.select2-search--dropdown .select2-search__field {
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    border: 1px solid #f1f3f5 !important;
}

.select2-results__option {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem !important;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary) !important;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #f8f9fa;
}

.btn-cancel {
    background: transparent;
    border: none;
    color: #748393;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-cancel:hover {
    color: #1e293b;
}

.btn-submit-premium {
    background: var(--primary);
    color: white;
    padding: 1.1rem 2.8rem;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(162, 126, 80, 0.4);
    transition: var(--transition);
}

.btn-submit-premium i {
    font-size: 1.1rem;
    margin-top: -1px;
}

.btn-submit-premium:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(162, 126, 80, 0.5);
}

.radio-premium-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-premium-item {
    flex: 1;
    position: relative;
}

.radio-premium-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-premium-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border: 1.5px solid #f1f3f5;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.radio-premium-item input[type="radio"]:checked + .radio-premium-label {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(162, 126, 80, 0.1);
}

.radio-premium-label i {
    font-size: 1rem;
}

