/* SwapCenter Complete Frontend Stylesheet */
/* Location: assets/css/style.css */
/* Save as: C:\xampp\htdocs\SwapCenter\assets\css\style.css */

/* ========================================
   COLOR VARIABLES - YOUR BRAND COLORS
   ======================================== */
:root {
    /* Neutral Colors */
    --neutral-light: #F2F2F2;
    --neutral-dark: #2E2E2E;
    
    /* Primary Colors */
    --primary-dark-blue: #0A2540;
    --primary-hover: #0E3A5D;
    --primary-light: #E6EEF5;
    
    /* Text Colors */
    --text-primary: #2E2E2E;
    --text-inverse: #FFFFFF;
    
    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--neutral-light);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-dark-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ========================================
   LAYOUT - CONTAINER
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
    background-color: var(--primary-dark-blue);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-inverse);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--text-inverse);
}

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.navbar-brand .brand-accent {
    color: #10B981 !important;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    list-style: none;
}

.navbar-menu a {
    color: var(--text-inverse);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.navbar-menu a:hover {
    background-color: var(--primary-hover);
    color: var(--text-inverse);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-dark-blue);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(10, 37, 64, 0.3);
    color: var(--text-inverse);
}

.btn-secondary {
    background-color: var(--neutral-dark);
    color: var(--text-inverse);
}

.btn-secondary:hover {
    background-color: #404040;
    color: var(--text-inverse);
}

.btn-success {
    background-color: var(--success);
    color: var(--text-inverse);
}

.btn-success:hover {
    background-color: #059669;
    color: var(--text-inverse);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--text-inverse);
}

.btn-danger:hover {
    background-color: #DC2626;
    color: var(--text-inverse);
}

.btn-warning {
    background-color: var(--warning);
    color: var(--text-inverse);
}

.btn-warning:hover {
    background-color: #D97706;
    color: var(--text-inverse);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-dark-blue);
    color: var(--primary-dark-blue);
}

.btn-outline:hover {
    background-color: var(--primary-dark-blue);
    color: var(--text-inverse);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--primary-dark-blue);
    margin-bottom: 0.5rem;
}

.card-body {
    padding: 0;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-dark-blue);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ========================================
   TABLES
   ======================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: var(--primary-light);
    color: var(--primary-dark-blue);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-light);
}

.table tbody tr:hover {
    background-color: var(--primary-light);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    line-height: 1;
}

.badge-normal {
    background-color: #6B7280;
    color: white;
}

.badge-special {
    background-color: var(--warning);
    color: white;
}

.badge-glitter {
    background-color: #A855F7;
    color: white;
}

.badge-rare {
    background-color: var(--danger);
    color: white;
}

.badge-success {
    background-color: var(--success);
    color: white;
}

.badge-pending {
    background-color: var(--warning);
    color: white;
}

.badge-warning {
    background-color: var(--warning);
    color: white;
}

.badge-danger {
    background-color: var(--danger);
    color: white;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #D1FAE5;
    border-left-color: var(--success);
    color: #065F46;
}

.alert-error {
    background-color: #FEE2E2;
    border-left-color: var(--danger);
    color: #991B1B;
}

.alert-warning {
    background-color: #FEF3C7;
    border-left-color: var(--warning);
    color: #92400E;
}

.alert-info {
    background-color: #DBEAFE;
    border-left-color: var(--info);
    color: #1E40AF;
}

/* ========================================
   GRID SYSTEM
   ======================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col {
    flex: 1;
    padding: 0 10px;
}

.col-2 { width: 16.666%; padding: 0 10px; }
.col-3 { width: 25%; padding: 0 10px; }
.col-4 { width: 33.333%; padding: 0 10px; }
.col-6 { width: 50%; padding: 0 10px; }
.col-8 { width: 66.666%; padding: 0 10px; }
.col-12 { width: 100%; padding: 0 10px; }

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--neutral-dark);
    color: var(--text-inverse);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer a {
    color: var(--text-inverse);
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .navbar-menu {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .col-2, .col-3, .col-4, .col-6, .col-8 {
        width: 100%;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 15px;
    }
    
    .card {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--primary-hover) 100%);
    padding: 4rem 0;
    color: white;
    margin-bottom: 2rem;
}

/* ========================================
   PROGRESS BARS
   ======================================== */
.progress-bar {
    background-color: var(--neutral-light);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    width: 100%;
}

.progress-bar-fill {
    background-color: var(--success);
    height: 100%;
    transition: width 0.3s ease;
}

/* ========================================
   LOADING STATES
   ======================================== */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--primary-dark-blue);
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        background-color: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}