/* Customer Portal Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f6fa;
}

.portal-header {
    background: white;
    border-bottom: 1px solid #e1e8ed;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.portal-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.portal-nav a {
    text-decoration: none;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.portal-nav a:hover {
    background-color: var(--light-color);
}

.portal-nav a.active {
    background-color: var(--primary-color);
    color: white;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 100%;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.content-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.content-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

.status-active {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-new {
    background-color: #cce5ff;
    color: #004085;
}

.status-open {
    background-color: #d4edda;
    color: #155724;
}

.status-resolved {
    background-color: #e2e3e5;
    color: #383d41;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary-color);
    max-width: 400px;
    margin: 0 auto;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state i {
    display: block;
    margin-bottom: 1rem;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.quick-action-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: left;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-action-btn .icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

@media (max-width: 768px) {
    .portal-nav {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}

/* Credit Badge */
.credit-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

/* Alert Styles */
.alert-warning-custom {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 4px;
}

/* Table Styles */
.table-portal {
    background: white;
}

.table-portal thead {
    background-color: var(--light-color);
}

.table-portal td {
    vertical-align: middle;
}

/* Mobile Card View for Tables */
.mobile-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.mobile-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Mobile Responsive Typography */
.h2-md {
    font-size: 1.5rem;
}

.h3-md {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .h2-md {
        font-size: 2rem;
    }
    
    .h3-md {
        font-size: 1.75rem;
    }
}

/* Width Utilities */
.w-md-auto {
    width: 100%;
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .content-card {
        padding: 1rem;
    }
    
    .portal-header {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
}
