/* Reset and General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333333 !important;
    transition: all 0.3s ease;
}

/* Sidebar */
.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sidebar .nav-link {
    padding: 10px 15px;
    border-radius: 8px;
    color: #555555;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    transform: translateX(5px);
}

/* Buttons */
.btn-glass {
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #333333 !important;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* Main Content */
.main-content {
    padding: 30px;
    border-radius: 15px;
    margin: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Header Bar */
.header-bar {
    background: linear-gradient(90deg, #007bff, #00d4ff);
    border-radius: 10px;
    padding: 15px 20px;
    color: #333333 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Table */
.table-glass {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.table-glass th, .table-glass td {
    border: none;
    padding: 12px;
    vertical-align: middle;
    color: #333333 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.table-glass th a, .table-glass td a {
    color: #ffffff !important;
}

.table-glass th {
    font-weight: 600;
    background: rgba(0, 212, 255, 0.1);
}

.table-glass tbody tr {
    transition: all 0.3s ease;
}

.table-glass tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.text-ellipsis {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #007bff !important;
}

.thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}

/* Pagination */
.pagination .page-link {
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.1);
    color: #333333 !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.pagination .page-link:hover {
    background: rgba(0, 212, 255, 0.2);
}

.pagination .page-item.active .page-link {
    background: #00d4ff;
    border-color: #00d4ff;
    color: #333333 !important;
}

/* Modal */
.modal-content.bg-glass {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.95);
    z-index: 1050 !important;
}

.modal-header {
    background: linear-gradient(90deg, #007bff, #00d4ff);
    border: none;
    border-radius: 15px 15px 0 0;
    color: #333333 !important;
}

.modal-body {
    color: #333333 !important;
}

.modal-body .form-control {
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dddddd;
    color: #333333 !important;
}

.modal-body .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.modal-body .form-label {
    color: #333333 !important;
}

/* Modal Close Button */
.btn-close {
    opacity: 1 !important;
    filter: none !important;
    width: 1.5em;
    height: 1.5em;
    padding: 0.25em;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.btn-close-white {
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707A1 1 0 01.293.293z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
    background-color: rgba(0, 0, 0, 0.1);
}

.btn-close-white:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Modal Backdrop */
.modal-backdrop {
    z-index: 1040 !important;
    opacity: 0.5 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Message Box */
#messageBox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    min-width: 300px;
    text-align: center;
}

/* Logo Styling */
.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border: 2px solid rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

/* Text Colors */
.text-cyan {
    color: #007bff !important;
}

/* Error */
.error {
    color: #ff6b6b !important;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Card Styling for product.php */
.card.bg-glass {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin: 10px;
        padding: 15px;
    }
}

/* Public Product Page */
.public-product-page {
    background: white;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    max-width: 200px;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border-style: none;
}

.logo-text {
    color: #00B7E5; /* Match logo color */
    font-weight: 500;
}

.price-box {
    display: inline-block;
    background: #4c7fb2; /* Red background (can change to blue if preferred) */
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
}

.product-image {
    max-width: 250px;
    width: 100%;
    height: auto;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333333;
}

/* Responsive Design for Mobile */
@media (max-width: 576px) {
    .logo {
        max-width: 150px;
    }

    .price-box {
        padding: 6px 12px;
        font-size: 1rem;
    }

    .product-image {
        max-width: 250px;
    }

    .product-name {
        font-size: 1.2rem;
    }
}