/* Admin Dashboard Styles */



/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: #f0f7f4;
    color: #0a5c3e;
}

.tab-btn.active {
    background: linear-gradient(135deg, #04ffa3 0%, #0a5c3e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(10, 92, 62, 0.4);
}

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* View All Link Styles */
.view-all-link {
    text-align: center;
    margin-top: 2rem;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #04ffa3 0%, #0a5c3e 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 92, 62, 0.4);
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 92, 62, 0.6);
}

/* Container Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f3ee 0%, #f0f7f4 100%);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f3ee 0%, #f0f7f4 100%);
}

/* Header Styles */
.admin-header {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0d724d;
    /* -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    margin: 0;
}

.form-header {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0a5c3e 0%, #04ffa3 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* Button Styles */
.add-product-btn {
    background: linear-gradient(135deg, #04ffa3 0%, #0a5c3e 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 92, 62, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.add-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 92, 62, 0.6);
    background: linear-gradient(135deg, #0a5c3e 0%, #04ffa3 100%);
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.edit-btn {
    background: linear-gradient(135deg, #04ffa3 0%, #0a5c3e 100%);
    color: white;
}

.edit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(10, 92, 62, 0.4);
    background: linear-gradient(135deg, #0a5c3e 0%, #04ffa3 100%);
}

.delete-btn {
    background: linear-gradient(135deg, #f5a65b 0%, #ff8c42 100%);
    color: white;
}

.delete-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(245, 166, 91, 0.4);
}

.btn-view {
    background: linear-gradient(135deg, #04ffa3 0%, #0a5c3e 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 92, 62, 0.4);
}

.btn-update {
    background: linear-gradient(135deg, #04ffa3 0%, #0a5c3e 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 92, 62, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #f5a65b 0%, #ff8c42 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 166, 91, 0.4);
}

.btn-submit {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #04ffa3 0%, #0a5c3e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 92, 62, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 92, 62, 0.6);
    background: linear-gradient(135deg, #0a5c3e 0%, #04ffa3 100%);
}

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

.btn-cancel {
    flex: 1;
    padding: 1rem 2rem;
    background: #e2e8f0;
    color: #2d3748;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

/* Product Grid Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Product Card Styles */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-bestseller {
    background: linear-gradient(135deg, #f5a65b 0%, #ff8c42 100%);
    color: white;
}

.badge-popular {
    background: linear-gradient(135deg, #04ffa3 0%, #0a5c3e 100%);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #0a5c3e 0%, #04ffa3 100%);
    color: white;
}

.product-content {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0a5c3e 0%, #04ffa3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #718096;
    font-size: 0.9rem;
}

.stock-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48bb78;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

/* Orders Table Styles */
.orders-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow-x: auto;
}

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

@media (max-width: 992px) {
    .orders-table {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .orders-table th:nth-child(3),
    .orders-table td:nth-child(3) {
        display: none;
    }
}

.orders-table thead {
    background: linear-gradient(135deg, #04ffa3 0%, #0a5c3e 100%);
    color: white;
}

.orders-table th,
.orders-table td {
    padding: 1rem;
    text-align: left;
}

.orders-table th {
    font-weight: 600;
}

.orders-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.orders-table tbody tr:hover {
    background: #f0f7f4;
}

/* Status Badge Styles */
.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Order Detail Styles */
.order-info {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #718096;
}

.info-value {
    font-weight: 600;
    color: #2d3748;
}

.items-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.items-section h3 {
    color: #0a5c3e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.order-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #2d3748;
}

.item-qty {
    color: #718096;
    font-size: 0.9rem;
}

.item-price {
    font-weight: 700;
    color: #0a5c3e;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 2px solid #0a5c3e;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.total-label {
    font-weight: 700;
    color: #2d3748;
}

.total-value {
    font-weight: 700;
    color: #0a5c3e;
    font-size: 1.4rem;
}

.status-form {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.status-form h3 {
    color: #0a5c3e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.status-form form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.status-form select {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Form Styles */
.form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-control:focus {
    outline: none;
    border-color: #0a5c3e;
    background: white;
    box-shadow: 0 0 0 3px rgba(10, 92, 62, 0.1);
}

.form-control:hover {
    border-color: #cbd5e0;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230a5c3e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-hint {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-hint i {
    color: #0a5c3e;
}

.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.input-icon .form-control {
    padding-left: 2.75rem;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    color: #22543d;
}

.alert-error {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #742a2a;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #718096;
    margin-bottom: 1.5rem;
}

/* Back Link Styles */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0a5c3e;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 0.75rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .status-form form {
        flex-direction: column;
    }
    
    .status-form select {
        width: 100%;
    }
}
