/* Admin Panel Styles */

/* Layout */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95), rgba(13, 13, 13, 0.95));
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
}

.admin-sidebar.collapsed {
    width: 70px;
}

.admin-main {
    margin-left: 250px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.admin-main.sidebar-collapsed {
    margin-left: 70px;
}

/* Sidebar */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.admin-sidebar.collapsed .sidebar-header .logo span {
    display: none;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 107, 53, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.menu-item i {
    font-size: 1.2rem;
    width: 20px;
    margin-right: 15px;
}

.admin-sidebar.collapsed .menu-item span {
    display: none;
}

.admin-sidebar.collapsed .menu-item i {
    margin-right: 0;
    text-align: center;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header */
.admin-header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

#pageTitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-text);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-text);
}

.admin-info i {
    color: var(--primary-color);
}

/* Sections */
.admin-section {
    display: none;
    padding: 30px;
}

.admin-section.active {
    display: block;
}

/* Dashboard Specific Styles */

.dashboard-container {
    min-height: 100vh;
    padding: 40px 0 80px;
}

.dashboard-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: var(--primary-color);
}

.btn-edit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Profile Card */
.profile-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 25px;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    color: var(--gray-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    color: var(--light-text);
    font-size: 1.1rem;
    font-weight: 600;
}

.address-display {
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-input {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--light-text);
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.info-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.btn-edit-address {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-edit-address:hover {
    background: var(--primary-color);
    color: var(--light-text);
}

.edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.btn-save {
    background: linear-gradient(135deg, var(--success-color), #4caf50);
}

.btn-save:hover {
    background: linear-gradient(135deg, #4caf50, var(--success-color));
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Orders Container */
.orders-container {
    display: grid;
    gap: 20px;
}

.order-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.order-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.2);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.order-date {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--gray-text);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.order-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.order-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-processing {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.status-shipped {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.status-delivered {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.payment-status {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.payment-success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.payment-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.payment-failed {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Loading Text */
.loading-text {
    text-align: center;
    color: var(--gray-text);
    padding: 40px;
    font-size: 1.1rem;
}

/* Profile Form */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-form input,
.profile-form select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light-text);
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
}

.profile-form input:focus,
.profile-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.profile-form h3 {
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Order Details */
.order-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
}

.detail-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.detail-label {
    color: var(--gray-text);
}

.detail-value {
    color: var(--light-text);
    font-weight: 600;
}

/* Admin Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.stat-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
}

.stat-info h3 {
    color: var(--gray-text);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-text);
    margin: 0;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    color: var(--light-text);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

/* Orders Table */
.orders-table-container {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
}

.orders-table thead {
    background: rgba(255, 107, 53, 0.1);
}

.orders-table th {
    padding: 15px;
    text-align: left;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.orders-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--light-text);
}

.orders-table tbody tr {
    transition: background 0.3s;
}

.orders-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

.action-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    border: none;
    padding: 6px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 5px;
}

.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
}

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

.manage-btn::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;
}

.manage-btn:hover::before {
    width: 300px;
    height: 300px;
}

.manage-btn i {
    position: relative;
    z-index: 1;
}

.manage-btn span {
    position: relative;
    z-index: 1;
}

/* Auth Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light-text);
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-switch {
    text-align: center;
    color: var(--gray-text);
    margin-top: 10px;
}

.form-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-switch a:hover {
    text-decoration: underline;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-auth {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-auth:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.btn-signup {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-home {
    background: rgba(255, 255, 255, 0.05);
}

/* Modal Styles */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

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

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

.modal-content {
    background: linear-gradient(160deg, rgba(26, 26, 26, 0.98), rgba(13, 13, 13, 0.98));
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content.large {
    max-width: 900px;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.5);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.7);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
}

.close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--gray-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #fff;
    background: var(--primary-color);
    transform: rotate(90deg);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.modal-body {
    padding: 25px 30px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.overlay.active {
    display: block;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.success-message.active {
    transform: translateX(0);
}

.success-icon {
    font-size: 1.5rem;
}

.success-text {
    font-weight: 600;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 107, 53, 0.3);
}

.stat-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    position: relative;
    z-index: 1;
}

.stat-info h3 {
    color: var(--gray-text);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--light-text);
    margin: 0;
    background: linear-gradient(135deg, var(--light-text), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.stat-change.positive {
    color: #4caf50;
}

.stat-change.negative {
    color: #f44336;
}

/* Dashboard Welcome */
.dashboard-welcome {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 165, 0, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.dashboard-welcome h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Bebas Neue', cursive;
}

.dashboard-welcome p {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin: 0;
}

/* Dashboard Widgets */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.widget {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.widget h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.recent-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-number {
    font-weight: 600;
    color: var(--primary-color);
}

.order-customer {
    font-size: 0.9rem;
    color: var(--gray-text);
}

.order-meta {
    text-align: right;
}

.order-amount {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Section Controls */
.section-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: var(--gray-text);
}

.search-box input {
    padding: 12px 15px 12px 45px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-size: 0.9rem;
    width: 300px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

/* Orders Tiles */
.orders-tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.order-tile {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.order-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.3);
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.order-date {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.tile-body {
    margin-bottom: 20px;
}

.customer-info {
    margin-bottom: 15px;
}

.customer-name {
    font-weight: 600;
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.customer-email {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.shipping-address {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.address-label {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.address-text {
    color: var(--gray-text);
    font-size: 0.85rem;
    line-height: 1.4;
}

.order-items-summary {
    margin-bottom: 15px;
}

.item-summary {
    color: var(--light-text);
    font-size: 0.9rem;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
}

.total-label {
    color: var(--gray-text);
    font-weight: 500;
}

.total-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.payment-info {
    margin-bottom: 15px;
}

.tile-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-section label {
    color: var(--gray-text);
    font-weight: 500;
    font-size: 0.9rem;
}

.status-selector {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.status-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.status-selector:hover {
    border-color: var(--primary-color);
}

/* Users Tiles */
.users-tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.user-tile {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.user-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.3);
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.role-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-color);
}

.role-user {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.contact-info {
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--light-text);
}

.contact-item i {
    color: var(--primary-color);
    width: 16px;
}

.user-address {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.address-label {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.address-text {
    color: var(--gray-text);
    font-size: 0.85rem;
    line-height: 1.4;
}

.user-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--gray-text);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: var(--light-text);
    font-weight: 600;
    font-size: 1rem;
}

/* Data Table (keeping for users section) */
.data-table-container {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.data-table thead {
    background: rgba(255, 107, 53, 0.1);
}

.data-table th {
    padding: 20px;
    text-align: left;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.data-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--light-text);
}

.data-table tbody tr {
    transition: background 0.3s;
}

.data-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.analytics-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.analytics-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.chart-container,
.revenue-trends {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    text-align: center;
    color: var(--gray-text);
}

.chart-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Order Management Styles */
.order-management {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.status-update-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 165, 0, 0.1));
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.1);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
}

.print-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.print-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.current-status {
    margin-left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.detail-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-grid {
    display: grid;
    gap: 15px;
}

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

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

.detail-label {
    color: var(--gray-text);
    font-weight: 500;
}

.detail-value {
    color: var(--light-text);
    font-weight: 600;
}

.address-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.address-text {
    margin: 0;
    color: var(--light-text);
    line-height: 1.5;
}

.items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.item-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-name {
    font-weight: 600;
    color: var(--light-text);
    font-size: 1.1rem;
}

.item-meta {
    font-size: 0.9rem;
    color: var(--gray-text);
}

.item-total {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.order-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-text);
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Modal Enhancements */
.modal-content.large {
    max-width: 900px;
}

/* Button States */
button:disabled,
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary:disabled {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.5), rgba(255, 165, 0, 0.5));
}

/* Spinner Animation */
.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modal Animation */
.modal {
    animation: fadeIn 0.3s ease-out;
}

.modal.active .modal-content {
    animation: slideInDown 0.3s ease-out;
}

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

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

/* Print Styles */
@media print {
    .admin-sidebar,
    .admin-header,
    .overlay,
    .modal-header .close-modal,
    .status-update-section form,
    .btn-secondary {
        display: none !important;
    }
    
    .modal {
        position: static;
        display: block;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: none;
        box-shadow: none;
        border: none;
    }
    
    .order-management {
        padding: 20px;
    }
    
    .status-update-section {
        border: 2px solid #333;
        page-break-inside: avoid;
    }
    
    .detail-section {
        page-break-inside: avoid;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-header {
        padding: 0 15px;
    }

    #pageTitle {
        font-size: 1.2rem;
    }

    .stats-overview {
        grid-template-columns: 1fr;
    }

    .dashboard-widgets {
        grid-template-columns: 1fr;
    }

    .section-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        width: 100%;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 15px 10px;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-info {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .orders-table {
        font-size: 0.85rem;
    }

    .orders-table th,
    .orders-table td {
        padding: 10px;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .btn-auth {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}