* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-bg: #ecf0f1;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #bdc3c7;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

nav a:hover {
    opacity: 0.8;
}

.user-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c0392b 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #229954 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-icon {
    padding: 0.5rem 0.8rem;
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--secondary-color);
    color: white;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 15px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--secondary-color);
}

.service-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #dfe6e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid var(--light-bg);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
    background: #f8fbff;
}

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

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--card-shadow);
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.2rem;
    text-align: right;
    font-weight: 600;
}

td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--light-bg);
}

tr:hover {
    background-color: #f9f9f9;
}

/* Alerts */
.alert {
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 5px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: capitalize;
}

.badge-pending {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.badge-washing {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.badge-drying {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.badge-ironing {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
}

.badge-ready {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.badge-delivered {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

/* Order Cards */
.order-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-left: 5px solid var(--secondary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.order-card:hover {
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.25);
    transform: translateY(-5px);
    border-left-color: #2980b9;
}

.order-card:active {
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-bg);
}

.order-id {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.order-status {
    font-size: 0.9rem;
}

.order-card-body {
    margin-bottom: 1.2rem;
}

.order-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    align-items: center;
}

.order-info-label {
    color: var(--text-light);
    font-weight: 600;
}

.order-info-value {
    color: var(--text-dark);
    font-weight: bold;
}

.order-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.order-card-footer .btn {
    flex: 1;
    min-width: 100px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.order-card-footer select {
    flex: 1;
    min-width: 100px;
    padding: 0.7rem;
    font-size: 0.9rem;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    width: fit-content;
}

.view-toggle button {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--light-bg);
    background: white;
    color: var(--text-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.view-toggle button.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Search Bar */
.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.search-bar input {
    flex: 1;
    min-width: 200px;
}

.search-bar .btn {
    padding: 0.7rem 1.5rem;
}

/* Sort Links */
.sort-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.sort-links strong {
    margin-right: 0.5rem;
    color: var(--text-dark);
}

.sort-links a {
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    font-weight: 500;
}

.sort-links a:hover {
    background: var(--secondary-color);
    color: white;
}

/* Admin Panel */
.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.admin-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    height: fit-content;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar li {
    margin-bottom: 0.5rem;
}

.admin-sidebar a {
    display: block;
    padding: 0.85rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    color: white;
    transform: translateX(5px);
}

.admin-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

/* Tab Navigation */
.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--light-bg);
    background: white;
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.tab-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.tab-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .admin-container {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar input,
    .search-bar .btn {
        width: 100%;
    }

    .sort-links {
        flex-direction: column;
    }

    .sort-links a {
        width: 100%;
    }

    .order-card {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }

    .order-card-footer {
        flex-direction: column;
    }

    .order-card-footer .btn,
    .order-card-footer select {
        width: 100%;
    }

    .order-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.7rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .btn-small {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }

    .tab-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }

    .logo {
        font-size: 1.4rem;
    }

    nav ul {
        gap: 0.3rem;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 10px;
    }

    .order-card {
        padding: 0.8rem;
    }

    .order-id {
        font-size: 1.1rem;
    }

    .order-info-label,
    .order-info-value {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    table {
        font-size: 0.75rem;
    }

    th, td {
        padding: 0.5rem;
    }

    .navbar-container {
        padding: 0 10px;
    }

    .navbar-logo {
        font-size: 1.3rem;
    }

    .navbar-links {
        gap: 0.5rem;
    }

    .navbar-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Hidden Elements */
.hidden {
    display: none !important;
}

.table-view {
    display: none;
}

.table-view.active {
    display: table;
}

.card-view {
    display: block;
}

.card-view.hidden {
    display: none;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar-logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: transform 0.3s;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    flex-wrap: wrap;
    align-items: center;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.navbar-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-links .admin-link {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
}

.navbar-links .admin-link:hover {
    background: white;
    color: var(--primary-color);
}
