/**
 * Boxy Lockers - Main Stylesheet
 * Orange Theme: #FF6B35
 */

:root {
    --primary-color: #FF6B35;
    --primary-hover: #e65a2b;
    --secondary-color: #2C3E50;
    --success-color: #27AE60;
    --danger-color: #E74C3C;
    --warning-color: #F39C12;
    --info-color: #3498DB;
    --light-bg: #F8F9FA;
    --dark-text: #333333;
    --border-radius: 10px;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    border: none;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Navbar */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--dark-text) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Dashboard */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #f8f9fa 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
}

.dashboard-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

/* Rental Cards */
.rental-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.rental-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.rental-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

/* Passcode Display */
.passcode-display {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 1.5rem 0;
}

.passcode-number {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 10px;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Size Selection Cards */
.size-card {
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
}

.size-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

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

.size-card.disabled:hover {
    transform: none;
    border-color: #dee2e6;
}

.size-icon {
    font-size: 3rem;
    margin: 1rem 0;
}

.availability-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Pricing Display */
.pricing-info {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.price-amount {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 1rem 0;
}

.step::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dee2e6;
    z-index: 0;
}

.step:first-child::before {
    left: 50%;
}

.step:last-child::before {
    right: 50%;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.step.active .step-number {
    background-color: var(--primary-color);
}

.step.completed .step-number {
    background-color: var(--success-color);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

/* Loading Spinner */
.spinner-wrapper {
    text-align: center;
    padding: 3rem;
}

.spinner-border-primary {
    color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .passcode-number {
        font-size: 2rem;
        letter-spacing: 5px;
    }
    
    .dashboard-header {
        padding: 2rem 0;
    }
    
    .progress-steps {
        flex-direction: column;
    }
    
    .step::before {
        display: none;
    }
}

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

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

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-primary {
    box-shadow: 0 4px 6px rgba(255, 107, 53, 0.3);
}

a.navbar-brand {
    color: white!important;
}