/* ==========================================================================
   Shared Component Styles
   Common CSS classes used across multiple pages in the application
   ========================================================================== */

/* ==========================================================================
   Layout & Containers
   ========================================================================== */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ==========================================================================
   Headers
   ========================================================================== */

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-title-icon {
    font-size: 2.5rem;
}

.page-subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: #0066CC;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0052a3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 1.2rem;
}

/* ==========================================================================
   Loading Indicators
   ========================================================================== */

.processing-indicator {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066CC;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-sm {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

.processing-status {
    margin: 1rem 0;
}

.status-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0.5rem 0;
}

.status-detail {
    color: #666;
    margin: 0.5rem 0;
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 2px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-danger,
.alert-error {
    background: #fee;
    border-color: #dc3545;
    color: #c53030;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.alert-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.alert-sm {
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border: none;
}

.card-header {
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    border-radius: 0;
}

.card-header.bg-primary {
    background: #0066CC !important;
    color: white;
    border-bottom: none;
}

.card-header.bg-secondary {
    background: #6c757d !important;
    color: white;
    border-bottom: none;
}

.card-header.bg-success {
    background: #28a745 !important;
    color: white;
    border-bottom: none;
}

.card-header.bg-info {
    background: #17a2b8 !important;
    color: white;
    border-bottom: none;
}

.card-header.bg-warning {
    background: #ffc107 !important;
    color: #212529;
    border-bottom: none;
}

.card-header h5,
.card-header h6 {
    margin: 0;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

/* ==========================================================================
   Action Sections
   ========================================================================== */

.action-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .page-container,
    .page-container-wide {
        padding: 1rem 0.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-header {
        margin-bottom: 1.5rem;
    }
}
