/* DailySelah Design System
 * Standardized components for consistent design across all pages
 */

/* ============================================================================
 * SECTION LAYOUTS - Standard section structures used throughout the platform
 * ============================================================================ */

/* Standard Page Section - Use this for all main content sections */
.page-section {
    padding: 4rem 0;
    background-color: white;
}

.page-section.gray-bg {
    background-color: #f8f9fa;
}

.page-section.compact {
    padding: 2rem 0;
}

/* ============================================================================
 * TYPOGRAPHY - Consistent text styles throughout the platform
 * ============================================================================ */

/* Standard Section Title - Use for all section headings */
.section-title {
    font-size: 2rem;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Page Title - For main page headings */
.page-title {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ============================================================================
 * GRID LAYOUTS - Standard grid systems for consistent layouts
 * ============================================================================ */

/* Standard Card Grid - Use for all card-based layouts */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card-grid.compact {
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card-grid.large-cards {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* ============================================================================
 * CARD COMPONENTS - Standard card designs used throughout the platform
 * ============================================================================ */

/* Standard Card - Base card component */
.standard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    transition: transform 0.3s ease;
    text-align: center;
}

.standard-card:hover {
    transform: translateY(-5px);
}

.standard-card.left-align {
    text-align: left;
}

/* Action Card - For clickable actions (like Quick Actions) */
.action-card {
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    display: block;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.action-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.action-card p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================================
 * ICONS - Standard icon styles
 * ============================================================================ */

/* Standard Action Icon - For action cards and buttons */
.action-icon {
    font-size: 2.5rem;
    color: #d09c1a;
    margin-bottom: 1rem;
}

.action-icon.large {
    font-size: 3rem;
}

.action-icon.small {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* ============================================================================
 * BUTTONS - Standard button styles
 * ============================================================================ */

/* Primary Button - Main action buttons */
.btn-primary {
    background-color: #d09c1a;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #b8860b;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-warning:hover {
    background-color: #e0a800;
    color: #212529;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-danger:hover {
    background-color: #c82333;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ============================================================================
 * BADGES - Standard badge/tag styles
 * ============================================================================ */

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.badge.primary {
    background: #d09c1a;
    color: white;
}

.badge.secondary {
    background: #6c757d;
    color: white;
}

.badge.success {
    background: #28a745;
    color: white;
}

.badge.warning {
    background: #ffc107;
    color: #333;
}

.badge.danger {
    background: #dc3545;
    color: white;
}

/* ============================================================================
 * EMPTY STATES - Standard empty state designs
 * ============================================================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #d09c1a;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================================================
 * FORMS - Standard form styles
 * ============================================================================ */

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #d09c1a;
    box-shadow: 0 0 0 0.2rem rgba(208, 156, 26, 0.25);
}

/* ============================================================================
 * STATUS INDICATORS - Standard status styles
 * ============================================================================ */

.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

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

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

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

/* ============================================================================
 * RESPONSIVE DESIGN - Standard breakpoints and mobile styles
 * ============================================================================ */

@media (max-width: 768px) {
    .page-section {
        padding: 2rem 0;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .action-icon {
        font-size: 2rem;
    }
}

/* ============================================================================
 * UTILITY CLASSES - Helper classes for common needs
 * ============================================================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-space-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
