/* ==========================================================================
   Admin Panel Custom Styles (Premium Theme)
   ========================================================================== */

:root {
    --primary-color: #717fe0;
    --primary-hover: #333333;
    --bg-dark: #1f1f1f;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 255, 255, 0.4);
    --shadow-glass: rgba(0, 0, 0, 0.15);
    --text-muted: #888888;
    --danger-color: #f82a4c;
    --danger-hover: #c81a38;
}

/* Glassmorphism Auth Container */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #f3f4fd 0%, #e6e9f8 100%);
    padding: 20px;
}

.auth-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 var(--shadow-glass);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 12px 40px 0 rgba(113, 127, 224, 0.25);
}

.auth-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group-custom {
    margin-bottom: 20px;
    position: relative;
}

.form-group-custom label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.input-custom {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.input-custom:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(113, 127, 224, 0.15);
}

.tip-box {
    background: rgba(113, 127, 224, 0.08);
    border-left: 4px solid var(--primary-color);
    padding: 12px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
    font-size: 13px;
    color: #444;
}

.btn-custom {
    background: var(--primary-color);
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 8px;
    padding: 14px 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-custom:active {
    transform: translateY(0);
}

/* Admin Dashboard Layout */
.admin-header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
    margin-bottom: 40px;
}

.admin-header-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.admin-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
}

/* Category Checkboxes Grid */
.categories-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.category-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    background: #fdfdfd;
    transition: all 0.2s ease;
    user-select: none;
}

.category-checkbox-label input {
    display: none;
}

.category-checkbox-label:hover {
    border-color: var(--primary-color);
    background: rgba(113, 127, 224, 0.03);
}

.category-checkbox-label.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

/* Image Upload Area */
.upload-area {
    border: 2px dashed #b3b3b3;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: rgba(250, 250, 250, 0.8);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(113, 127, 224, 0.05);
}

.upload-area i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.upload-area p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Image Previews List */
.image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.preview-thumbnail {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    background: #f9f9f9;
}

.preview-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-thumbnail .remove-img-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: rgba(248, 42, 76, 0.85);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.preview-thumbnail .remove-img-btn:hover {
    background: var(--danger-color);
}

/* Product Management List Table */
.product-manage-card {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.product-manage-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #d1d1d1;
}

.product-manage-info {
    display: flex;
    align-items: center;
}

.product-manage-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 16px;
    background: #f9f9f9;
    border: 1px solid #f0f0f0;
}

.product-manage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-manage-details h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.product-manage-details .categories-tags {
    margin-bottom: 4px;
}

.product-manage-details .category-tag {
    font-size: 11px;
    background: #eaeaea;
    color: #555;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.product-manage-details .price-tag {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-delete {
    background: rgba(248, 42, 76, 0.1);
    color: var(--danger-color);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-delete:hover {
    background: var(--danger-color);
    color: #ffffff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
}

/* Sticky alert notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #333333;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.success {
    border-left: 4px solid #28a745;
}

.toast-notification.error {
    border-left: 4px solid var(--danger-color);
}
