﻿/* Βασική τυπογραφία και διάταξη */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding-bottom: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff; /* Λευκό φόντο */
    color: #000000; /* Μαύρο κείμενο */
}

/* Σύνδεσμοι με κόκκινη απόχρωση */
a {
    color: #d9534f; /* Κόκκινη απόχρωση */
    text-decoration: none;
}

/* Στυλ για το Navbar */
.navbar {
    border-bottom: 2px solid #d9534f;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 1px;
}


.navbar-nav .nav-link {
    color: #000000 !important;
    transition: color 0.3s;
}

    .navbar-nav .nav-link:hover {
        color: #d9534f !important;
    }

/* Στυλ για το container σύνδεσης */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #d9534f;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #000000;
}

/* Στοιχεία φόρμας */
.form-control {
    margin-bottom: 15px;
    border: 1px solid #d9534f;
    border-radius: 4px;
    transition: border-color 0.3s;
}

    .form-control:focus {
        border-color: #d9534f;
        box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem #d9534f;
    }

.btn-spacing {
    margin-right: 10px;
}


/* Κουμπιά */
.btn-primary {
    background-color: #d9534f !important;
    border-color: #d9534f !important;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s, border-color 0.3s;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #c9302c !important;
        border-color: #ac2925 !important;
    }

/* Απόσταση για τα checkboxes */
.checkbox {
    margin-bottom: 20px;
}

/* Στυλ για το sticky footer */
.sticky-footer {
    position: fixed;
    bottom: 10px; /* Ελαφρώς πάνω από το κάτω μέρος για καλύτερη αισθητική */
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    padding: 10px;
    /* border: 1px solid #d9534f; */
    border-radius: 5px;
    z-index: 1000;
}

    .sticky-footer .btn {
        padding: 10px 20px;
        font-size: 16px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

/* Επιπλέον στυλ για κουμπιά και εστίαση */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem ;
}


.order-item:hover {
    background-color: #f8f9fa;
    transform: scale(1.02);
}

.order-item i {
    transition: transform 0.3s;
}

.order-item:hover i {
    transform: translateX(5px);
}

.wine-card {
    transition: transform 0.3s;
}

    .wine-card:hover {
        transform: scale(1.02);
    }

.wine-item {
    transition: background-color 0.3s;
}

    .wine-item:hover {
        background-color: #f8f9fa;
    }

/* Floating Button */
.floating-footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

    .floating-footer button {
        font-size: 1.1rem;
        padding: 12px 20px;
    }

/*  Ensure all table content is vertically and horizontally centered */
.table th, .table td {
    vertical-align: middle;
    text-align: center;
}

/* Center quantity input properly in its cell */
.quantity-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.quantity-input {
    width: 100px;
    text-align: center;
    font-size: 1rem;
}

/*  Make Remove (X) button take full space */
.remove-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: red;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.2s;
}

    .remove-item:hover {
        color: darkred;
        background-color: #f8d7da;
        border-radius: 5px;
    }

/* 🔴 Change wine list headers to red */
.wine-card .card-header {
    background-color: #d9534f !important; /* Red header */
    color: white !important; /* White text for contrast */
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    padding: 10px;
}

/* 🔴 Change modal header background to red */
.modal-header {
    background-color: #d9534f !important;
    color: white !important;
    font-weight: bold;
}

    /* ✅ Ensure the close button is visible on the red background */
    .modal-header .btn-close {
        filter: invert(1);
    }


.search-form {
    margin-bottom: 15px;
}

.search-input {
    padding: 8px;
    width: 250px;
    margin-right: 5px;
}

.search-button {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

    .product-table th, .product-table td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: left;
    }

    .product-table th {
        background-color: #f4f4f4;
    }

.status-checkbox {
    transform: scale(1.2);
    cursor: pointer;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

/* Submit Button */
.submit-button {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .submit-button:hover {
        background-color: #218838;
    }

/* Search Form */
.search-form {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.search-input {
    padding: 8px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-button {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .search-button:hover {
        background-color: #0056b3;
    }

/* Product Table */
.product-table {
    width: 100%;
    border-collapse: collapse;
}

    .product-table th, .product-table td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: left;
    }

    .product-table th {
        background-color: #f8f9fa;
    }

/* Status Checkboxes */
.status-checkbox {
    transform: scale(1.3);
    cursor: pointer;
}

.ban-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #dc3545; /* Red */
    color: white;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    min-width: 100px;
}

/* Center the logo */
.logo-container {
    text-align: center;
    margin-bottom: 20px; /* Space between logo and login box */
}

    .logo-container img {
        max-width: 280px; /* Adjust the size */
        height: auto;
        display: block;
        margin: 0 auto; /* Centering */
    }

.quantity-wrapper-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #d9534f;
    border-radius: 8px;
    padding: 5px;
    background-color: white;
    gap: 10px;
    flex-wrap: nowrap;
}

.left-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quantity-input {
    height: 32px;
    width: 80px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.quick-select-dropdown {
    height: 30px;
    font-size: 14px;
    padding: 0 4px;
    border-radius: 4px;
}

.right-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .right-side button {
        width: 36px;
        height: 36px;
        font-weight: bold;
        font-size: 18px;
        border: none;
        background-color: white;
        border-radius: 4px;
        box-shadow: 0 0 0 1px #ccc;
        transition: background-color 0.2s ease-in-out;
    }

        .right-side button:hover {
            background-color: #f0f0f0;
        }


.table-group-header {
    background-color: #f8f9fa;
    font-weight: bold;
}
