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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #3b5998, #8b9dc3);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Login Container */
.login-container {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-container h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #3b5998;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-container input {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.login-container button {
    background: #3b5998;
    color: #fff;
    font-size: 1rem;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container button:hover {
    background: #2d4373;
}

.error {
    color: #d9534f;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Spinner for loading */
.spinner {
    display: none;
    margin: 1rem auto;
    width: 30px;
    height: 30px;
    border: 4px solid #ccc;
    border-top: 4px solid #3b5998;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 1.5rem;
    }
}

/* Admin Panel Styles */
.admin-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.admin-container h1 {
    text-align: center;
    color: #3b5998;
    margin-bottom: 1.5rem;
}

.add-service-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.add-service-form input,
.add-service-form button {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.add-service-form button {
    background: #3b5998;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-service-form button:hover {
    background: #2d4373;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
}

.services-table th,
.services-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #ccc;
}

.services-table th {
    background: #3b5998;
    color: #fff;
}

.services-table .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    margin-right: 0.5rem;
}

.services-table .btn.edit {
    background: #f0ad4e;
}

.services-table .btn.delete {
    background: #d9534f;
}
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

form input,
form button {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background: #3b5998;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background: #2d4373;
}
.sales-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.services-list, .cart {
    margin-bottom: 2rem;
}

.services-list h2, .cart h2 {
    margin-bottom: 1rem;
    color: #3b5998;
}

.services-list form, .cart ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart ul {
    list-style: none;
    padding: 0;
}

.cart ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart ul li .btn {
    background: #d9534f;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.875rem;
}

.cart ul li .btn:hover {
    background: #c9302c;
}
/* General Styles */
.sales-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

header h1 {
    text-align: center;
    color: #3b5998;
    font-size: 2rem;
}

/* Services Tiles Section */
.services-tiles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.services-tiles h2 {
    text-align: center;
    color: #3b5998;
    font-size: 1.5rem;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.tile {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile button {
    all: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: pointer;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.tile .icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
}

.tile .details {
    text-align: center;
}

.tile .details .name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.tile .details .price {
    color: #3b5998;
    font-size: 1.1rem;
}

/* Cart Section */
.cart {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cart h2 {
    color: #3b5998;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cart-items {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.cart-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.btn.finalize {
    background: #3b5998;
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
    cursor: pointer;
}

.btn.finalize:hover {
    background: #2d4373;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    position: relative;
}

.modal h2 {
    text-align: center;
    color: #3b5998;
    margin-bottom: 1rem;
}

.modal .tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.close-btn {
    background: #d9534f;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-top: 1rem;
    display: block;
}
