:root {
    --sidebar-width: 220px;
    --header-height: 60px;
    --primary-color: #3b82f6;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #fff;
    --border-color: #e9ecef;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

body.dark-theme {
    --bg-color: #121212;
    --text-color: #f8f9fa;
    --card-bg: #1e1e1e;
    --border-color: #333;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: white;
    border-right: 1px solid #e9ecef;
    z-index: 1000;
    padding-top: var(--header-height);
    transition: all 0.3s;
}

.sidebar-collapsed {
    transform: translateX(-100%);
}

.sidebar .nav-link {
    color: #6c757d;
    border-radius: 5px;
    margin: 0 10px;
    padding: 10px 15px;
}

.sidebar .nav-link.active, .sidebar .nav-link:hover {
    background-color: #f0f7ff;
    color: #3b82f6;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Header Styles */
.top-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 900;
}

.toggle-btn {
    margin-right: 20px;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.25rem;
    cursor: pointer;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 80px 20px 20px;
    transition: all 0.3s;
}

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

/* Card Styles */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 20px;
}

/* Metric Cards */
.metric-card {
    height: 100%;
}

.metric-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.metric-change {
    font-size: 14px;
    margin-bottom: 20px;
}

.metric-change.positive {
    color: #22c55e;
}

.metric-change.negative {
    color: #ef4444;
}

.chart-container {
    height: 100px;
    position: relative;
}

/* Transaction Styles */
.trans-list {
    list-style: none;
    padding: 0;
}

.trans-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

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

.trans-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    margin-right: 15px;
}

.trans-details {
    flex-grow: 1;
}

.trans-company {
    font-weight: 600;
    margin-bottom: 3px;
}

.trans-id {
    font-size: 12px;
    color: #6c757d;
}

.trans-amount {
    font-weight: 600;
    text-align: right;
}

.trans-tabs .nav-link {
    color: #6c757d;
    border: none;
    padding: 15px;
    border-bottom: 2px solid transparent;
}

.trans-tabs .nav-link.active {
    color: #3b82f6;
    background: none;
    border-bottom: 2px solid #3b82f6;
}

/* Profile Styles */
.profile-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.profile-info span {
    display: block;
}

.profile-name {
    font-weight: 600;
    font-size: 14px;
}

.profile-role {
    font-size: 12px;
    color: #6c757d;
}

.section-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.header-icons {
    display: flex;
    gap: 15px;
    margin-right: 20px;
}

.header-icon {
    color: #6c757d;
    font-size: 18px;
}

/* Utility Classes for Auth Pages */
.auth-main {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    margin: 0 auto;
}

.auth-main .card {
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: none;
}

.logo-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.link-primary {
    color: var(--primary-color);
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Contact Form Styles */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Auth pages specific styles */
body.auth-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive styles */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar-visible {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

.rewards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.rewards-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #343a40;
    margin: 0;
}

.rewards-actions {
    color: #6c757d;
    cursor: pointer;
}

.rewards-content {
    padding: 20px;
}

.rewards-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid #eee;
    height: 100%;
}

/* Fix for the colon alignment */
.rewards-points-section {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rewards-points-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.rewards-points-label {
    color: #6c757d;
    font-size: 0.9rem;
}