/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f9fafb;
    color: #111827;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 1001;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Sidebar Styles */
.sidebar {
    width: 240px;
    background-color: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 999;
}

.logo {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-menu {
    display: none;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
}

/* Navigation Menu */
.nav-menu {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    justify-content: space-between;
}

.nav-menu ul {
    list-style: none;
    padding: 0 0.5rem;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}


.nav-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-menu li a:hover {
    background-color: #f3f4f6;
}


.nav-menu li a i {
    width: 20px;
    margin-right: 0.75rem;
}

.nav-menu li a span {
    flex: 1;
}
.nav-menu a:hover {
    background-color: #f3f4f6;
}

.nav-menu li.active a {
    background-color: #f0f0ff;
    color: #6d28d9;
}

.nav-menu i {
    width: 20px;
    margin-right: 0.75rem;
}

.logout-section {
    padding: 0 0.5rem;
    margin-top: auto;
}

.logout-link {
    color: #ef4444 !important;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


/* Top Navigation */
.top-nav {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.balance-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.balance-amount {
    font-weight: 600;
}

.add-funds-button {
    background-color: #6d28d9;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-funds-button:hover {
    background-color: #5b21b6;
}

.icon-button {
    background: none;
    border: none;
    color: #6b7280;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.icon-button:hover {
    background-color: #f3f4f6;
}

/* Content Area */
.content-area {
    padding: 1.5rem;
    flex-grow: 1;
    position: relative;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
    margin: 4rem auto;
    transition: opacity 0.3s ease-in-out;
}

.megaphone-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    padding: 0.75rem;
    background-color: #fee2e2;
    border-radius: 50%;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.empty-state p {
    color: #6b7280;
}

/* Payment Form */
.payment-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.payment-form.hidden {
    display: none;
    opacity: 0;
}

.payment-form-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.payment-form-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.payment-form-content {
    padding: 2rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.payment-method.active {
    border-color: #6d28d9;
    background-color: #f0f0ff;
    color: #6d28d9;
}

.payment-method i {
    font-size: 1.25rem;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

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

.submit-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #6d28d9;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-button:hover {
    background-color: #5b21b6;
}

/* Hide element utility class */
.hidden {
    display: none !important;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.payment-status-label {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.payment-status-label.success {
    background-color: #dff0d8;
    color: #3c763d;
    display: block;
}

.payment-status-label.error {
    background-color: #f2dede;
    color: #a94442;
    display: block;
}
.campaign-header input[type="text"] {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    border: none;
    background: transparent;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.campaign-header input[type="text"]:focus {
    outline: none;
    border-bottom-color: #6d28d9;
}

.campaign-header input[type="text"]::placeholder {
    color: #9ca3af;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .close-menu {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-overlay {
        display: block;
    }

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

    .top-nav {
        padding-left: 4rem;
    }

    .balance-label {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .add-funds-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .payment-form {
        margin: 1rem;
        padding: 1rem;
    }

    .payment-form-content {
        padding: 1rem;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}