/* Admin Styles */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

.tab-content {
    padding: 20px;
}

.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-body h5 {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.card-body h2 {
    color: #333;
    font-weight: bold;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    background: white;
}

.product-info h5 {
    margin: 10px 0;
    font-weight: 600;
    color: #333;
}

.product-info p {
    font-size: 12px;
    margin: 5px 0;
}

.price {
    color: #e74c3c;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        flex-direction: column;
    }

    .col-md-2 {
        width: 100%;
        margin-bottom: 20px;
    }

    .col-md-10 {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .product-card {
        margin-bottom: 15px;
    }

    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 8px !important;
    }

    .btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 20px;
    }

    .modal-content {
        padding: 15px;
    }

    h2 {
        font-size: 20px;
    }

    .d-flex {
        flex-direction: column;
    }

    .justify-content-between {
        gap: 10px;
    }
}
