* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: rgba(15, 52, 96, 0.9);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
}

header h1 {
    color: #fff;
    font-size: 2rem;
    margin: 0;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
main {
    padding: 20px 0;
}

main h2 {
    color: #fff;
    margin-bottom: 10px;
    margin-top: 10px;
    font-size: 2rem;
    text-align: center;
}

/* Cafe Info Wrapper */
.cafe-info-wrapper {
    background: rgba(15, 52, 96, 0.3);
    padding: 40px 0;
    margin-top: 20px;
}

/* Cafe Info Section */
.cafe-info-section {
    background: rgba(22, 33, 62, 0.6);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    flex-shrink: 0;
}

.info-content h3 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-content p {
    color: #b0b0b0;
    margin: 0;
}

.social-links {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.social-links h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.telegram:hover {
    background: #0088cc;
}

.social-icon.whatsapp:hover {
    background: #25D366;
}

.social-icon.phone:hover {
    background: #4CAF50;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    row-gap: 20px;
    column-gap: 20px;
    margin-top: 10px;
}
.category-card {
    background: rgba(22, 33, 62, 0.8);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    width: 160px;
    height: 160px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color:rgba(0, 0, 0, 0.6);
    padding: 10px;
}

.category-name {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
    text-align: center;
}

.list-category-name {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}



/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: rgba(22, 33, 62, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.product-description {
    color: #b0b0b0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-price {
    font-size: 1.3rem;
    color: #4CAF50;
    font-weight: bold;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(22, 33, 62, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(15, 52, 96, 0.5);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-secondary {
    padding: 8px 16px;
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #da190b;
}

.btn-edit {
    background: #2196F3;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.3s;
}

.btn-edit:hover {
    background: #0b7dda;
}

.btn-delete {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-delete:hover {
    background: #da190b;
}

.error-message {
    color: #f44336;
    margin-bottom: 15px;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #4CAF50;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Admin Panel */
.admin-panel {
    background: rgba(22, 33, 62, 0.6);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Edit Product Container */
.edit-product-container {
    background: rgba(22, 33, 62, 0.6);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.edit-product-container h2 {
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
}


.edit-product-category {
    padding: 10px;
    width: 300px;
    background: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.edit-product-category option{
    color: black;
    background-color: white;
}

.add-product-section {
    background: rgba(15, 52, 96, 0.5);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.add-product-section h3 {
    color: #fff;
    margin-bottom: 20px;
}

.products-list-section h3 {
    color: #fff;
    margin-bottom: 20px;
}

.admin-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.admin-product-card {
    background: rgba(15, 52, 96, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.admin-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.admin-product-info {
    padding: 20px;
}

.admin-product-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Footer */
footer {
    background: rgba(15, 52, 96, 0.9);
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

footer p {
    color: #b0b0b0;
}

/* Modal Styles */
.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close-modal {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    left: 15px;
    top: 15px;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fff;
}

.modal-content h3 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    flex: 1;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    .logo-title {
        flex-direction: column;
        text-align: center;
    }

    .cafe-info-section {

        flex-direction: column;
        text-align: center;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .products-grid,
    .admin-products-grid {
        grid-template-columns: 1fr;
    }

    .login-box {
        padding: 30px 20px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}
