


.admin-nav {
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-logo {
    height: 40px;
    width: auto;
}

.admin-brand h1 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin: 0;
}

.admin-nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-nav-link {
    color: var(--lighter-text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-logout:hover {
    background: #e74c3c;
    color: white;
}


.admin-container {
    display: flex;
    min-height: calc(100vh - 80px);
}


.admin-sidebar {
    width: 280px;
    background: rgba(17, 34, 64, 0.8);
    border-right: 1px solid rgba(212, 175, 55, 0.1);
    padding: 30px 20px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-section h3 {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-card {
    background: rgba(10, 25, 47, 0.6);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.stat-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-info h4 {
    color: var(--pure-white);
    font-size: 1.5rem;
    margin: 0;
}

.stat-info p {
    color: var(--lighter-text);
    font-size: 0.8rem;
    margin: 5px 0 0 0;
}


.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(10, 25, 47, 0.3);
    border-radius: 8px;
    color: var(--lighter-text);
    transition: var(--transition-smooth);
}

.category-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
}

.category-count {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}


.admin-main {
    flex: 1;
    padding: 30px;
    max-width: calc(1400px - 280px);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--pure-white);
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header p {
    color: var(--lighter-text);
    font-size: 1rem;
}


.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.dashboard-card h3 {
    color: var(--pure-white);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}


.recent-products {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(10, 25, 47, 0.6);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.recent-product-item:hover {
    transform: translateX(5px);
    background: rgba(10, 25, 47, 0.8);
}

.recent-product-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-product-info h4 {
    color: var(--pure-white);
    font-size: 0.9rem;
    margin: 0 0 5px 0;
}

.recent-product-info p {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
}


.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.action-btn {
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: var(--lighter-text);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.action-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.action-btn i {
    font-size: 1.2rem;
}

.action-btn span {
    flex: 1;
    font-weight: 500;
}


.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

@media (max-width: 768px) {
    .products-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

.search-box {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lighter-text);
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: var(--light-text);
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.filter-controls {
    display: flex;
    gap: 15px;
}

.filter-select {
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    color: var(--light-text);
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-gold);
}


.products-table-container {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
}

.products-table thead {
    background: rgba(10, 25, 47, 0.9);
}

.products-table th {
    padding: 20px;
    text-align: left;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.products-table td {
    padding: 20px;
    color: var(--light-text);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.products-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.product-image-cell img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.action-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.action-icon.edit {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.action-icon.delete {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.action-icon:hover {
    transform: scale(1.1);
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(17, 34, 64, 0.8);
    border-radius: 10px;
}

.pagination {
    display: flex;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(10, 25, 47, 0.6);
    color: var(--light-text);
    border: 1px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover,
.page-btn.active {
    background: var(--accent-gold);
    color: var(--primary-dark);
}


.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.form-section {
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.form-section h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-text);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: var(--light-text);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--lighter-text);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.btn-text:hover {
    text-decoration: underline;
}


.image-upload-container {
    position: relative;
}

.image-preview {
    width: 100%;
    height: 250px;
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--lighter-text);
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

.image-preview:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
}

.image-preview i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.image-preview p {
    margin: 5px 0;
    text-align: center;
}

.image-hint {
    font-size: 0.8rem;
    color: var(--lighter-text);
}

.image-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

.image-url-group {
    margin-top: 20px;
}

.image-url-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-text);
}


.tags-input-container {
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 10px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 34px;
}

.tag-item {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-remove {
    cursor: pointer;
    font-size: 0.8rem;
}

#tagInput {
    background: transparent;
    border: none;
    outline: none;
    color: var(--light-text);
    width: 100%;
    padding: 5px;
}


.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--secondary-dark);
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.large-modal {
    max-width: 800px;
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--pure-white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    font-size: 28px;
    color: var(--lighter-text);
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 25px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}


.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2ecc71;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

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

.notification i {
    font-size: 1.2rem;
}


@media (max-width: 1200px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .admin-main {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .admin-nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .products-controls {
        flex-direction: column;
    }
    
    .filter-controls {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .products-table {
        display: block;
        overflow-x: auto;
    }
}

/* ===== Login Page Styles ===== */
.login-bg-decoration {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.15), transparent 30%),
        radial-gradient(circle at bottom left, rgba(244, 228, 166, 0.08), transparent 25%);
    pointer-events: none;
    z-index: 0;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
}

.login-box {
    width: 100%;
    max-width: 460px;
    background: rgba(17, 34, 64, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(13, 27, 42, 0.35);
    padding: 36px 28px;
    backdrop-filter: blur(12px);
    text-align: center;
}

.login-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    margin-bottom: 12px;
}

.login-title {
    color: var(--pure-white);
    margin-bottom: 6px;
    font-size: 2rem;
}

.credentials-info {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 20px 0 24px;
    text-align: left;
}

.credentials-info p {
    margin: 6px 0;
    color: var(--lighter-text);
    font-size: 0.95rem;
}

.credentials-info strong {
    color: var(--accent-gold-light);
}

.form-group {
    text-align: left;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-text);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: rgba(10, 25, 47, 0.95);
    color: var(--pure-white);
    outline: none;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.form-group input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.login-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 15px 18px;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

.error-message {
    display: none;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #ffb3ad;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    text-align: left;
    font-size: 0.95rem;
}

.login-footer {
    margin-top: 22px;
    color: var(--lighter-text);
    font-size: 0.95rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    text-decoration: none;
    margin-top: 10px;
    font-weight: 600;
}

.back-link:hover {
    color: var(--accent-gold-light);
}

@media (max-width: 640px) {
    .login-container {
        padding: 100px 14px 40px;
    }

    .login-box {
        padding: 28px 18px;
        border-radius: 20px;
    }

    .login-title {
        font-size: 1.7rem;
    }
}


/* ===== Polished Welcome Login Animation ===== */
.login-container {
  animation: pageFadeIn 0.7s ease both;
}

.login-box {
  position: relative;
  overflow: hidden;
  animation: loginCardRise 0.8s ease both;
}

.login-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(212,175,55,0.35), transparent 35%, rgba(244,228,166,0.18));
  opacity: 0.55;
  pointer-events: none;
}

.login-box > * {
  position: relative;
  z-index: 1;
}

.login-logo {
  animation: softFloat 3.2s ease-in-out infinite;
}

.login-title {
  letter-spacing: 0.5px;
  animation: titleFade 0.8s ease both;
}

.login-subtitle {
  color: var(--lighter-text);
  margin: -4px 0 20px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.form-group input {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus {
  transform: translateY(-1px);
}

.login-btn {
  position: relative;
  overflow: hidden;
}

.login-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.login-btn:hover::after {
  left: 130%;
}

.floating-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(212,175,55,0.45), rgba(212,175,55,0.02));
}

.orb-one {
  width: 180px;
  height: 180px;
  top: 14%;
  left: 8%;
  animation: orbDriftOne 9s ease-in-out infinite;
}

.orb-two {
  width: 130px;
  height: 130px;
  right: 10%;
  bottom: 12%;
  animation: orbDriftTwo 10s ease-in-out infinite;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes loginCardRise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes titleFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes orbDriftOne {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -14px); }
}

@keyframes orbDriftTwo {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 12px); }
}

