/* Import Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Variables */
:root {
    --dark: #141414;
    --blue: #0075ff;
    --light: #ebf2fa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Font */
* {
    font-family: 'Montserrat', sans-serif;
}

/* Dashboard */
.woo-dashboard {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Banner */
.dashboard-banner {
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: 300px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.banner-overlay {
    background: linear-gradient(135deg, rgba(0,117,255,0.95) 0%, rgba(20,20,20,0.85) 100%);
    padding: 3rem 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.banner-content {
    max-width: 600px;
    color: white;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin: 0 0 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.banner-content p {
    font-size: 1.125rem;
    margin: 0 0 1.5rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
}

.banner-btn {
    display: inline-block;
    background: white;
    color: var(--blue);
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* Header */
.dashboard-header {
    background: var(--dark);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.dashboard-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-header p {
    margin: 0;
    opacity: 0.85;
    line-height: 1.5;
    font-weight: 400;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid var(--light);
    box-shadow: var(--shadow-sm);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-content {
    flex: 1;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
}

/* Actions */
.actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    background: var(--blue);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn2 {
    background: var(--blue);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    display: inline-table;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-primary {
    background: var(--blue);
}

.btn-primary2 {
    background: var(--blue);
}

.btn-secondary {
    background: var(--dark);
}

.btn-secondary:hover {
    background: #2a2a2a;
}

.btn-accent {
    background: linear-gradient(135deg, var(--blue) 0%, #0052cc 100%);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #0052cc 0%, var(--blue) 100%);
}

/* Quick Info Cards */
.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    border: 2px solid var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.info-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    color: var(--dark);
    font-weight: 700;
}

.info-card p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(4px);
    z-index: 9999;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: block;
    opacity: 1;
    max-width: 100%;
    align-content: center;
}

.modal-content {
    background: white;
    max-width: 900px;
    margin: 0 auto;
    max-height: calc(100vh - 4rem);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--dark);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: var(--blue);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem 2rem 2rem;
    overflow-y: auto;
    max-height: 85vh;
}

/* Orders */
.order-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--light);
    align-items: center;
    transition: var(--transition);
}

.order-row:hover {
    background: var(--light);
}

.order-row span {
    font-size: 0.9rem;
    font-weight: 500;
}

.order-row .btn-detail {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.order-row .btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.status-completed { 
    color: #10b981; 
    font-weight: 600; 
}

.status-pending { 
    color: #f59e0b; 
    font-weight: 600; 
}

.status-processing { 
    color: var(--blue); 
    font-weight: 600; 
}

/* Order Detail */
.order-info p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.order-items h4 {
    margin: 1.5rem 0 1rem;
    font-weight: 700;
    color: var(--dark);
}

.item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light);
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.download-item {
    padding: 0.75rem;
    background: #e3f2fd;
    border-left: 3px solid var(--blue);
    margin: 0.5rem 0;
    border-radius: 8px;
    transition: var(--transition);
}

.download-item:hover {
    background: #bbdefb;
    transform: translateX(4px);
}

.download-item a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.download-item a:hover {
    text-decoration: underline;
}

/* Order Tickets Table from Tickera */
.order-details.widefat.shadow-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--light);
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.order-details.widefat.shadow-table thead tr,
.order-details.widefat.shadow-table tbody tr:first-child {
    background: var(--dark);
}

.order-details.widefat.shadow-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: white;
    background: var(--dark);
}

.order-details.widefat.shadow-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light);
    font-weight: 500;
}

.order-details.widefat.shadow-table tr:last-child td {
    border-bottom: none;
}

.order-details.widefat.shadow-table tr.alternate {
    background: var(--light);
}

.order-details.widefat.shadow-table tr:hover {
    background: #f8fafc;
}

.order-details.widefat.shadow-table td a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.order-details.widefat.shadow-table td a:hover {
    text-decoration: underline;
}

.order-details.widefat.shadow-table td[data-column="Ticket"] a {
    background: var(--blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    transition: var(--transition);
}

.order-details.widefat.shadow-table td[data-column="Ticket"] a:hover {
    background: var(--dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.order-shipping {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 12px;
}

.order-shipping h4 {
    margin: 0 0 0.75rem;
    color: var(--blue);
    font-weight: 700;
}

/* Addresses */
.address-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.address-box:hover {
    box-shadow: var(--shadow-md);
}

.address-box h4 {
    margin: 0 0 1rem;
    color: var(--blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.address-box p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.btn-edit {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Form */
#account-form,
#address-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#account-form label,
#address-form label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

#account-form input,
#account-form select,
#address-form input {
    padding: 0.75rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

#account-form input:focus,
#account-form select:focus,
#address-form input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 117, 255, 0.1);
}

#account-form button,
#address-form button {
    background: var(--blue);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

#account-form button:hover,
#address-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-back {
    background: #666 !important;
}

.btn-back:hover {
    background: #555 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header h2 {
        font-size: 20px;
    }
    .dashboard-header p {
        font-size: 15px;
    }
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .order-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .actions {
        grid-template-columns: 1fr;
    }
    
    .quick-info {
        grid-template-columns: 1fr;
    }
    
    .modal {
        padding: 0;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 8px;
	margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .item-row {
        grid-template-columns: 1fr;
    }
}

/* Recent Orders Section */
.recent-orders-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.section-header h3 i {
    margin-right: 0.5rem;
    color: var(--blue);
}

.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
}

.orders-list {
    display: grid;
    gap: 1rem;
}

.order-card {
    background: white;
    border: 1px solid var(--light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light);
}

.order-number {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-number strong {
    font-size: 1.125rem;
    color: var(--dark);
}

.order-date {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.order-date i {
    margin-right: 0.25rem;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700 !important;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700 !important;
}

.status-pending,
.status-on-hold {
    background: #fef3c7;
    color: #92400e;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700 !important;
}

.status-cancelled,
.status-failed {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700 !important;
}

.order-card-body {
    margin-bottom: 1rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.info-label i {
    margin-right: 0.25rem;
    color: var(--blue);
}

.info-value {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 700;
}

.order-card-footer {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

.btn-link {
    background: none;
    border: none;
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-link:hover {
    color: var(--dark);
}

.btn-link i {
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--light);
    margin-bottom: 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--blue);
    opacity: 0.5;
}

.empty-icon i {
    font-size: 4rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.5rem;
}

.empty-state p {
    color: #666;
    margin: 0 0 1.5rem;
}

/* Quick Actions Section */
.quick-actions-section {
    margin-bottom: 2rem;
}

.quick-actions-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 1.5rem;
}

.quick-actions-section h3 i {
    margin-right: 0.5rem;
    color: var(--blue);
}

.btn-icon i {
    font-size: 1.25rem;
}

/* Info Cards Icons */
.info-card h3 i {
    margin-right: 0.5rem;
    color: var(--blue);
}

.dashboard-header i {
    margin-right: 0.5rem;
}

.stat-icon i {
    font-size: 2.5rem;
    color: var(--blue);
}

/* Responsive */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .order-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .order-card-footer {
        flex-direction: column;
    }
}

/* Order Card Detail Buttons */
.order-card-footer .btn-detail {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.order-card-footer .btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-download {
    background: none;
    border: none;
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-download:hover {
    color: var(--dark);
}

.btn-link-info {
    background: none;
    border: none;
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 10px !important;
}

.btn-link-info:hover {
    color: var(--dark);
}

.btn-link-info i {
    font-size: 0.875rem;
}