:root {
    --primary: #2A2D43;
    --secondary: #4A5568;
    --accent: #D4AF37;
    --gradient: linear-gradient(135deg, #2A2D43 0%, #4A5568 100%);
    --background: #F8FAFC;
    --text: #2D3436;
}

* {
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: var(--background);
    color: var(--text);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.sidebar-header span {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.sidebar-header span:hover {
    background: rgba(0,0,0,0.1);
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Header Styles */
.header {
    background: var(--gradient);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.menu-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
}

.menu-btn:hover {
    background: rgba(255,255,255,0.1);
}

.logo {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    color: var(--secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active {
    background: var(--gradient);
    color: white;
    transform: translateY(-8px);
    box-shadow: 0 4px 12px rgba(42,45,67,0.3);
}

.container {
    max-width: 1200px;
    margin: 90px auto 120px;
    padding: 1rem;
}

.search-box {
    margin-bottom: 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 6px 16px rgba(42,45,67,0.2);
}

.perfume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.perfume-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.perfume-info {
    flex: 1;
}

.perfume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.perfume-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.perfume-price {
    background: var(--gradient);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.perfume-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.detail-label {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-value {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.rating-stars {
    color: #FFD700;
    font-size: 1.1rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    background: var(--gradient);
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42,45,67,0.2);
}

.edit-btn {
    background: var(--gradient);
}

.delete-btn {
    background: #ff4757;
}

.add-manufacturer-btn {
    background: var(--accent);
    padding: 0.8rem 1.5rem;
    margin-top: 0.5rem;
}

.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    margin: 2rem auto;
    max-width: 700px;
}

.form-group {
    margin-bottom: 2rem;
}

input, select {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.2);
    outline: none;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.2rem 0;
}

.tag {
    background: var(--gradient);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(42,45,67,0.1);
}

.hidden {
    display: none;
}