/* Variables */
:root {
    --primary-color: #10b981;
    --primary-hover: #059669;
    --text-dark: #1f2937;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-gray: #f9fafb;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #e2e8f0;
    --footer-bg: #1f2937;
    --footer-text: #9ca3af;
    --footer-border: #374151;
}

/* Base Styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding-top: 76px;
    background-color: #f3f4f6;
    margin: 0;
    line-height: 1.5;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Navigation */
.navbar {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 64px;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.nav-link {
    color: var(--text-dark);
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-hover);
    background-color: rgba(16, 185, 129, 0.1);
}

/* Dropdown Menus */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 0 !important;
    min-width: 14rem !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-gray);
    color: var(--primary-hover);
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary, .btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Main Content */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #4a5568;
}

.table th {
    background-color: #f8fafc;
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
}

/* Forms */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #a7f3d0;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}


/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem;
        background-color: white;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .nav-item {
        margin-bottom: 0.25rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Utility classes */
.text-success {
    color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--primary-color) !important;
}

/* Alert messages */
.alert {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    min-width: 300px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -1px rgba(0, 0, 0, 0.15);
}

/* Back to top button */
.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-floating.show {
    opacity: 1;
    visibility: visible;
}

.btn-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Footer styles */
.footer {
    background-color: var(--footer-bg);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--footer-text);
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand a {
    text-decoration: none;
    color: inherit;
}

.footer-brand i {
    color: #34d399;
    font-size: 1.5rem;
}

.footer-brand span {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-title {
    color: #e5e7eb;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.footer-link:hover {
    color: #34d399;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.footer-contact-item i {
    color: #34d399;
    margin-top: 0.25rem;
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--footer-border);
}

.payment-methods i {
    font-size: 1.5rem;
    color: var(--footer-text);
    margin: 0 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--footer-text);
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #34d399;
}
