/* ===================================
   AMRAN LAUNDRY MANAGEMENT SYSTEM
   STYLE.CSS
=================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f7fb;
    color: #222;
}

/* =========================
HOME PAGE
========================= */

header {
    background: #0057ff;
    padding: 20px 8%;
    position: sticky;
    top: 0;
    z-index: 999;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    color: #fff;
    font-size: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
}

.nav-links a:hover {
    color: #ffd54f;
}

.hero {

    height: 90vh;

    background:
        linear-gradient(rgba(0, 0, 0, .55),
            rgba(0, 0, 0, .55)),
        url("IMG-20260512-WA0002.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

}

.hero-text {
    color: white;
    width: 90%;
    max-width: 800px;
}

.hero-text h2 {
    font-size: 60px;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 22px;
    margin-bottom: 35px;
    line-height: 1.6;
}

button {

    background: #0057ff;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: .3s;

}

button:hover {

    background: #003fc0;

}

.services {

    padding: 80px 8%;

}

.services h2 {

    text-align: center;
    margin-bottom: 40px;
    color: #0057ff;

}

.service-box {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;

}

.card {

    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
    transition: .3s;

}

.card:hover {

    transform: translateY(-8px);

}

/* =========================
LOGIN
========================= */

.auth-container {

    width: 400px;
    max-width: 95%;
    margin: 70px auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);

}

.auth-container h2 {

    text-align: center;
    margin-bottom: 25px;
    color: #0057ff;

}

.auth-container input {

    width: 100%;
    padding: 15px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;

}

.auth-container input:focus {

    border-color: #0057ff;

}

/* =========================
CUSTOMER DASHBOARD
========================= */

.customer-dashboard {

    padding: 25px;

}

.customer-topbar {

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;

}

.customer-topbar h2 {

    color: #0057ff;

}

.user-box {

    background: white;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);

}

.customer-layout {

    display: grid;
    grid-template-columns: 55% 45%;
    gap: 25px;
    margin-bottom: 30px;

}

.promo-banner {

    height: 500px;

}

.promo-banner img {

    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);

}

.order-panel {

    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);

}

.order-panel h2 {

    margin-bottom: 25px;
    color: #0057ff;

}

.order-panel input,
.order-panel select {

    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    outline: none;

}

.order-panel input:focus,
.order-panel select:focus {

    border-color: #0057ff;

}

#selectedPrice {

    color: #0057ff;
    margin-bottom: 15px;

}

#success-message {

    margin-top: 15px;
    color: green;
    font-weight: bold;

}

.dashboard-menu {

    display: flex;
    gap: 15px;
    margin-bottom: 30px;

}

.dashboard-menu button {

    flex: 1;

}

.order-item {

    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .08);

}

.order-item h3 {

    color: #0057ff;
    margin-bottom: 10px;

}

.profile-card,
.help-card {

    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
    margin-bottom: 20px;

}

.help-card h3 {

    color: #0057ff;
    margin-bottom: 15px;

}

.help-card a {

    display: inline-block;
    margin-top: 10px;
    color: white;
    background: #25D366;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;

}

/* ===================================
STATUS BADGES
=================================== */

.status-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    border-radius: 25px;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

.pending {
    background: #ff9800;
}

.picked {
    background: #2196f3;
}

.washing {
    background: #9c27b0;
}

.delivery {
    background: #3f51b5;
}

.delivered {
    background: #4caf50;
}

.paid {
    background: #28a745;
}

.unpaid {
    background: #dc3545;
}

/* ===================================
ADMIN PANEL
=================================== */

.sidebar {
    width: 250px;
    min-height: 100vh;
    background: #0057ff;
    position: fixed;
    left: 0;
    top: 0;
    padding: 25px;
    overflow-y: auto;
}

.sidebar h2 {
    color: #fff;
    margin-bottom: 40px;
    text-align: center;
}

.sidebar a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: .3s;
    cursor: pointer;
}

.sidebar a:hover {

    background: rgba(255, 255, 255, .18);

}

.main {

    margin-left: 250px;
    width: calc(100% - 250px);

}

.header {

    background: #fff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);

}

.header h2 {

    color: #0057ff;

}

.stats {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 25px;

}

.card {

    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);

}

.card h3 {

    color: #777;
    margin-bottom: 10px;

}

.card h1 {

    color: #0057ff;
    font-size: 35px;

}

.section {

    padding: 25px;

}

.search-box {

    padding: 0 25px 20px;

}

.search-box input {

    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    outline: none;

}

.admin-order-card {

    background: #fff;
    padding: 25px;
    margin-bottom: 18px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);

}

.admin-order-card h3 {

    color: #0057ff;
    margin-bottom: 15px;

}

.admin-order-card p {

    margin: 8px 0;

}

.admin-order-card select {

    width: 100%;
    margin-top: 15px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;

}

.whatsapp-btn {

    display: inline-block;
    margin-top: 15px;
    padding: 12px 18px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;

}

.whatsapp-btn:hover {

    background: #20b558;

}

/* ===================================
REPORTS
=================================== */

.report-card {

    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
    margin-bottom: 20px;

}

.report-card h2 {

    color: #0057ff;
    margin-bottom: 15px;

}

/* ===================================
INVENTORY
=================================== */

.inventory-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;

}

.inventory-card {

    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);

}

.inventory-card h3 {

    color: #0057ff;
    margin-bottom: 12px;

}

.inventory-card input,
.inventory-card select {

    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;

}

.low-stock {

    color: #dc3545;
    font-weight: bold;

}

.in-stock {

    color: #28a745;
    font-weight: bold;

}

/* ===================================
TABLES
=================================== */

table {

    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);

}

th {

    background: #0057ff;
    color: #fff;
    padding: 15px;

}

td {

    padding: 15px;
    border-bottom: 1px solid #eee;

}

tr:hover {

    background: #f8f8f8;

}

/* ===================================
FORMS
=================================== */

input,
select,
textarea {

    font-size: 15px;

}

textarea {

    resize: none;

}

/* ===================================
SCROLLBAR
=================================== */

::-webkit-scrollbar {

    width: 8px;

}

::-webkit-scrollbar-thumb {

    background: #0057ff;
    border-radius: 20px;

}

/* ===================================
ANIMATION
=================================== */

.card,
.admin-order-card,
.inventory-card,
.order-item {

    animation: fade .35s ease;

}

@keyframes fade {

    from {

        opacity: 0;
        transform: translateY(10px);

    }

    to {

        opacity: 1;
        transform: translateY(0);

    }

}

/* ===================================
MOBILE
=================================== */

@media(max-width:900px) {

    .customer-layout {

        grid-template-columns: 1fr;

    }

    .customer-topbar {

        flex-direction: column;
        gap: 15px;

    }

    .dashboard-menu {

        flex-direction: column;

    }

    .hero {

        height: 75vh;

    }

    .hero-text h2 {

        font-size: 38px;

    }

    .hero-text p {

        font-size: 18px;

    }

    header {

        padding: 15px 5%;

    }

    nav {

        flex-direction: column;
        gap: 15px;

    }

    .nav-links {

        flex-wrap: wrap;
        justify-content: center;

    }

    .sidebar {

        position: relative;
        width: 100%;
        min-height: auto;

    }

    .main {

        margin-left: 0;
        width: 100%;

    }

    .stats {

        grid-template-columns: 1fr;

    }

    .auth-container {

        width: 95%;

    }

}

/* ===================================
FINANCE & SETTINGS
=================================== */

#finance-section input,
#finance-section textarea,
#settings-section input,
#settings-section select {

    width: 100%;
    padding: 14px;
    margin-top: 8px;
    margin-bottom: 18px;

    border: 1px solid #ddd;
    border-radius: 10px;

    outline: none;

}

#finance-section input:focus,
#finance-section textarea:focus,
#settings-section input:focus,
#settings-section select:focus {

    border-color: #0057ff;

}

#finance-summary {

    margin-top: 30px;

}

#finance-summary .card {

    margin-bottom: 20px;

}

#settings-section .card {

    max-width: 700px;

}

#settings-section button {

    width: 100%;

}

/* ===================================
INVENTORY PAGE
=================================== */

.inventory-form {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;

    margin-bottom: 25px;

}

.inventory-form input {

    width: 100%;
    padding: 14px;

    border: 1px solid #ddd;
    border-radius: 10px;

}

.inventory-form button {

    width: 100%;

}

.inventory-list {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;

}

.inventory-item {

    background: #fff;

    padding: 20px;

    border-radius: 15px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);

}

.inventory-item h3 {

    color: #0057ff;

    margin-bottom: 12px;

}

.inventory-item p {

    margin: 8px 0;

}

.inventory-actions {

    margin-top: 15px;

    display: flex;

    gap: 10px;

}

.inventory-actions button {

    flex: 1;

}

.low-stock {

    color: #e53935;

    font-weight: bold;

}

.good-stock {

    color: #28a745;

    font-weight: bold;

}

/* ===================================
FINANCE CARDS
=================================== */

.finance-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

}

.finance-card {

    background: #fff;

    padding: 25px;

    border-radius: 15px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);

}

.finance-card h3 {

    color: #666;

    margin-bottom: 10px;

}

.finance-card h1 {

    color: #0057ff;

}

/* ===================================
COMING SOON CARDS
=================================== */

.coming-soon {

    text-align: center;

    padding: 50px;

    background: #fff;

    border-radius: 20px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);

}

.coming-soon h2 {

    color: #0057ff;

    margin-bottom: 20px;

}

.coming-soon p {

    color: #666;

    font-size: 17px;

    line-height: 1.7;

}