/* -------------------------------------- */
/* Global Styles - Background & Layout */
/* -------------------------------------- */
@font-face {
    font-family: 'Champilon';
    src: url('../fonts/Champilon.otf') format('opentype');
}

body {
    font-family: 'Century Gothic', sans-serif;
    background: url('../images/background.jpg') no-repeat center center;
    background-size: cover;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

/* Overlay */
.overlay {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 40px;
    min-height: 100vh;
}

/* -------------------------------------- */
/* Page: Store Index (store/index.blade.php) */
/* -------------------------------------- */

/* Responsive Content Wrapper */
.content {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

/* Logo */
.logo {
    width: 200px;
    max-width: 100%;
    margin-bottom: 20px;
}

/* Typography */
.welcome-text {
    font-family: 'Champilon', sans-serif;
    font-size: 40px;
    letter-spacing: 5px;
    margin: 20px 0;
    color: #ffffff;
    font-weight: lighter;
}

.store-title {
    font-family: 'Champilon', sans-serif;
    font-size: 80px;
    letter-spacing: 20px;
    margin: 0 0 50px 0;
    color: #ffffff;
    font-weight: lighter;
}

/* Buttons */
/* -------------------------------------- */
/* Clean & Elegant Button Styling - Add Order & View Orders */
/* -------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

/* 🟢 Add Order Button */
.btn.add-order {
    background: #2E7D32; /* Solid Green */
    color: white;
    border: 2px solid #2E7D32;
}

.btn.add-order:hover {
    background: #ffffff; /* Darker Green */
    border-color: #000000;
}

/* 🔵 View Orders Button */
.btn.view-orders {
    background: #1565C0; /* Solid Blue */
    color: white;
    border: 2px solid #1565C0;
}

.btn.view-orders:hover {
    background: #0D47A1; /* Darker Blue */
    color: #ffffff;
    border-color: #0D47A1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .btn {
        font-size: 16px;
        padding: 10px 20px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .btn {
        font-size: 14px;
        padding: 8px 16px;
        border-radius: 5px;
    }
}


/* Success Message */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    margin: 10px auto;
    border-radius: 5px;
    width: 80%;
    text-align: center;
    border: 1px solid #c3e6cb;
    font-size: 16px;
    font-weight: bold;
}

/* -------------------------------------- */
/* Page: Add Order (store/anand/add_order.blade.php & store/mumbai/add_order.blade.php) */
/* -------------------------------------- */

/* Form Container */
.form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    color: #ffffff;
}

/* Form Elements */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
}

/* Input Fields */
input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Date Picker */
input[type="date"] {
    position: relative;
    background: white;
}

input#chart {
    background: white;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.submit-btn:hover {
    background-color: #218838;
}
h1.page-title{
    font-size: 30px;
}
/* -------------------------------------- */
/* Page: View Orders (store/view_orders.blade.php) */
/* -------------------------------------- */

    h1.page-title {
        color: #ffffff;
    }

    /* Table Container */
    .table-container {
        width: 100%;
        overflow-x: auto;
        margin: 20px auto;
        padding: 10px;
    }

    /* Table */
    table {
        width: 100%;
        border-collapse: collapse;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        overflow: hidden;
    }

    th {
        background-color: #475e00;
        color: white;
        font-weight: bold;
        padding: 12px;
        text-align: left;
        white-space: nowrap;
    }

    td {
        padding: 12px;
        color: #ffffff;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        white-space: nowrap;
    }

    /* Table Location Badge */
    .table-location-badge {
        display: inline-block;
        padding: 4px 8px;
        font-size: 12px;
        font-weight: bold;
        border-radius: 8px;
        text-transform: uppercase;
        color: white;
    }

    .table-location-badge.anand {
        background: #17a2b8;
    }

    .table-location-badge.mumbai {
        background: #dc3545;
    }

    /* Chart Image */
    .chart-image {
        width: 80px;
        height: auto;
        cursor: pointer;
        transition: transform 0.2s ease-in-out;
    }

    .chart-image:hover {
        transform: scale(1.1);
    }

    /* -------------------------------------- */
    /* Popup Modal for Chart Images */
    /* -------------------------------------- */
    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .popup-content {
        position: relative;
        background: white;
        padding: 30px;
        border-radius: 10px;
        max-width: 90%;
        max-height: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .popup-content img {
        max-width: 100%;
        max-height: 400px !important;
        border-radius: 5px;
    }

    .close-btn {
        position: absolute;
        top: 0px;
        right: 8px;
        font-size: 40px;
        cursor: pointer;
        color: #333;
        font-weight: bold;
    }

    .close-btn:hover {
        color: red;
    }

    a.btn.add-order, .btn.view-orders {
        margin: 5px;
    }


/* -------------------------------------- */
/* 🔥 Super Modern Tabs Styling */
/* -------------------------------------- */
.tabs-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.custom-tabs {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 50px;
    display: inline-flex;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.custom-tabs .nav-item {
    margin: 0 8px;
}

.custom-tabs .nav-link {
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 14px 24px;
    border-radius: 30px !important;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-pills .nav-link {
    border-radius: 50px;
}
.custom-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    border-radius: 30px;
}

.custom-tabs .nav-link.active {
    background: linear-gradient(45deg, #ff512f, #dd2476);
    color: white;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0px 6px 18px rgba(255, 0, 150, 0.3);
}

/* -------------------------------------- */
/* 🌟 Modern Glassmorphic Table Styling */
/* -------------------------------------- */
.table-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(12px);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.table {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-weight: bold;
    padding: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    color: #000000;
    padding: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

/* Alternating Row Colors for a Minimal Look */
tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.04);
}

tr:hover {
    background: rgba(255, 255, 255, 0.15);
    transition: 0.3s ease-in-out;
}

.view-measurement-btn {
    display: block;
    width: 100%;
    background-color: #000;
    color: white;
    border: none;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    text-align: center;
}

.view-measurement-btn:hover {
    background-color: #333;
}

    
    /* -------------------------------------- */
    /* Status Box Styling - Colored Labels */
    /* -------------------------------------- */
    .status-box {
        display: inline-block;
        padding: 8px 12px;
        border-radius: 5px;
        font-size: 14px;
        font-weight: bold;
        text-align: center;
        min-width: 100px;
        color: white;
    }

    /* Status Colors */
    .status-completed {
        background-color: #28a745; /* Green */
    }

    .status-in-progress {
        background-color: #ffc107; /* Yellow */
        color: #000;
    }

    .status-pending {
        background-color: #dc3545; /* Red */
    }
    .fa-chevron-right:before, .fa-chevron-left:before {
        color: #000 !important;
        font-size: 25px;
        padding: 10px;
        background-color: #a9a8a8;
        border-radius: 50px;
    }
    /* -------------------------------------- */
    /* Responsive Fixes */
    /* -------------------------------------- */
    @media (max-width: 950px) {
    a.btn.add-order, .btn.view-orders {
        margin: 10px;
    }
    }
    @media (max-width: 768px) {
        .popup-content {
            max-width: 95%;
            max-height: 85vh;
        }

        .popup-content img {
            max-width: 100%;
            max-height: 300px !important;
        }

        .chart-image {
            width: 60px;
        }
    }
    @media (max-width: 425px) {
        .popup-content {
            max-width: 90%;
            max-height: 80vh;
            margin: 0 10px;
            padding: 20px;
        }

        .close-btn {
            font-size: 25px;
        }

        .popup-content img {
            max-width: 100%;
            max-height: 300px !important;
        }

        .chart-image {
            width: 50px;
        }
        h1.store-title {
            font-size: 40px;
            letter-spacing: 10px;
        }
        h2.welcome-text {
            font-size: 25px;
        }
        a.btn.add-order, .btn.view-orders {
            margin: 10px 0;
        }
    }
