/**
 * Glass Morphism Theme
 * Creates beautiful glass-like effects with backdrop blur
 */

/* ==========================================
   GLASS EFFECTS BASE
   ========================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.85);
}

.glass-card-dark {
    background: rgba(44, 95, 45, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* ==========================================
   GLASS HEADER
   ========================================== */
.glass-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   GLASS BUTTONS
   ========================================== */
.glass-button {
    background: rgba(44, 95, 45, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.glass-button:hover::before {
    width: 300px;
    height: 300px;
}

.glass-button:hover {
    background: rgba(44, 95, 45, 1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(44, 95, 45, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.glass-button-secondary {
    background: rgba(212, 165, 116, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-button-secondary:hover {
    background: rgba(212, 165, 116, 1);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

/* ==========================================
   GLASS DROPDOWN
   ========================================== */
.glass-dropdown {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
}

.glass-dropdown .dropdown-item {
    background: transparent;
    transition: all 0.3s ease;
}

.glass-dropdown .dropdown-item:hover {
    background: rgba(44, 95, 45, 0.08);
    transform: translateX(5px);
}

/* ==========================================
   GLASS PRODUCT CARD
   ========================================== */
.glass-product-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.glass-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-product-card:hover::before {
    opacity: 1;
}

.glass-product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   GLASS INPUT FIELDS
   ========================================== */
.glass-input {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(44, 95, 45, 0.15);
}

.glass-input::placeholder {
    color: rgba(51, 51, 51, 0.5);
}

/* ==========================================
   GLASS MODAL/DIALOG
   ========================================== */
.glass-modal {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.glass-modal-header {
    background: rgba(44, 95, 45, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================
   GLASS BADGE
   ========================================== */
.glass-badge {
    background: rgba(44, 95, 45, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
}

.glass-badge-success {
    background: rgba(40, 167, 69, 0.8);
}

.glass-badge-danger {
    background: rgba(220, 53, 69, 0.8);
}

.glass-badge-warning {
    background: rgba(255, 193, 7, 0.8);
}

.glass-badge-info {
    background: rgba(23, 162, 184, 0.8);
}

/* ==========================================
   GLASS OVERLAY
   ========================================== */
.glass-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ==========================================
   GLASS PRICE TAG
   ========================================== */
.glass-price-tag {
    background: rgba(44, 95, 45, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.3);
}

/* ==========================================
   GLASS CATEGORY CARD
   ========================================== */
.glass-category-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 30px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-category-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.glass-category-card .category-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

.glass-category-card:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}

/* ==========================================
   GLASS FILTER SIDEBAR
   ========================================== */
.glass-filter-sidebar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 25px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.glass-filter-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.glass-filter-section:last-child {
    border-bottom: none;
}

/* ==========================================
   GLASS PAGINATION
   ========================================== */
.glass-pagination .page-link {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.glass-pagination .page-link:hover,
.glass-pagination .page-link.active {
    background: rgba(44, 95, 45, 0.9);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.3);
}

/* ==========================================
   GLASS ALERT
   ========================================== */
.glass-alert {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.glass-alert-success {
    border-left-color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
}

.glass-alert-danger {
    border-left-color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
}

.glass-alert-warning {
    border-left-color: var(--warning-color);
    background: rgba(255, 193, 7, 0.1);
}

.glass-alert-info {
    border-left-color: var(--info-color);
    background: rgba(23, 162, 184, 0.1);
}

/* ==========================================
   GLASS TABLE
   ========================================== */
.glass-table {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.glass-table thead {
    background: rgba(44, 95, 45, 0.1);
}

.glass-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.glass-table tbody tr:hover {
    background: rgba(44, 95, 45, 0.05);
}

/* ==========================================
   GLASS TOOLTIP
   ========================================== */
.glass-tooltip {
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   GLASS PROGRESS BAR
   ========================================== */
.glass-progress {
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    overflow: hidden;
    height: 12px;
}

.glass-progress-bar {
    background: linear-gradient(90deg, 
        rgba(44, 95, 45, 0.8) 0%, 
        rgba(44, 95, 45, 1) 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* ==========================================
   GLASS FLOATING ELEMENTS
   ========================================== */
.glass-float {
    animation: glass-float 3s ease-in-out infinite;
}

@keyframes glass-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* ==========================================
   GLASS SHINE EFFECT
   ========================================== */
.glass-shine {
    position: relative;
    overflow: hidden;
}

.glass-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: glass-shine-anim 3s infinite;
}

@keyframes glass-shine-anim {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ==========================================
   GLASS HOVER GLOW
   ========================================== */
.glass-hover-glow {
    position: relative;
    transition: all 0.3s ease;
}

.glass-hover-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: inherit;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glass-hover-glow:hover::before {
    opacity: 0.7;
}
