/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --text-light: #7f8c8d;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    background: var(--primary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
}

.navbar-brand i {
    margin-right: 8px;
    color: var(--accent-color);
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 20px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
}

.card-body {
    padding: 20px;
}

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.btn-primary {
    background: var(--secondary-color);
    border: none;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--accent-color);
    border: none;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    border: none;
}

/* Forms */
.form-control {
    border-radius: 5px;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52,152,219,0.25);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.service-card.selected {
    border-color: var(--success-color);
    background: #f0f9f0;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.service-card h5 {
    margin-bottom: 10px;
    font-weight: bold;
}

.service-card .price {
    color: var(--success-color);
    font-weight: bold;
}

/* Cart Table */
.cart-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.cart-table th {
    background: var(--light-color);
    padding: 12px;
}

.cart-table td {
    padding: 12px;
    vertical-align: middle;
}

/* Admin Sidebar */
.sidebar {
    background: var(--primary-color);
    min-height: 100vh;
    padding: 20px 0;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    padding: 12px 20px;
    margin: 5px 0;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white !important;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

/* Dashboard Stats */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Alerts */
.alert {
    border-radius: 5px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .sidebar {
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--light-color);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status Badges */
.badge-pending {
    background: var(--warning-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.badge-completed {
    background: var(--success-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.badge-processing {
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* Slider enhancements */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.6s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-prev {
    transform: translateX(0);
}

/* Gallery slider dots */
.slick-dots li button:before {
    font-size: 12px;
    color: var(--primary-color);
}

.slick-dots li.slick-active button:before {
    color: var(--secondary-color);
}