/**
 * Components CSS - Main Import File
 * 
 * This file imports all component and utility CSS files.
 * Include this file in your theme to use the component library.
 * 
 * Usage in theme:
 * <link href="<?php echo $theme_url;?>assets/css/components.css" rel="stylesheet">
 * 
 * Or add to Theme::$css array in lib/theme.php:
 * 'components' => 'assets/css/components.css'
 */

/* ========================================
   COMPONENT IMPORTS
   ======================================== */

/* Alert/Notification Components */
@import url('components/alerts.css');

/* Icon Utilities */
@import url('components/icons.css');

/* Avatar Components */
@import url('components/avatars.css');

/* Progress Bar Components */
@import url('components/progress.css');

/* Form Components */
@import url('components/forms.css');

/* Profile Page Components */
@import url('components/profile-components.css');

/* ========================================
   UTILITY IMPORTS
   ======================================== */

/* Spacing Utilities (margin, padding) */
@import url('utilities/spacing.css');

/* Text Utilities (alignment, color, size) */
@import url('utilities/text.css');

/* Display Utilities (display, visibility, overflow) */
@import url('utilities/display.css');

/* Flexbox Utilities (flex, align, justify) */
@import url('utilities/flexbox.css');

/* ========================================
   ADDITIONAL COMPONENT STYLES
   ======================================== */

/**
 * Modal Size Variants
 * Extends Materialize modal with size variants
 */
.modal--sm {
    width: 30% !important;
    max-width: 400px !important;
}

.modal--md {
    width: 40% !important;
    max-width: 600px !important;
}

.modal--lg {
    width: 60% !important;
    max-width: 900px !important;
}

.modal--xl {
    width: 80% !important;
    max-width: 1200px !important;
}

.modal--full {
    width: 95% !important;
    height: 95% !important;
    max-height: 95% !important;
}

@media (max-width: 768px) {
    .modal--sm,
    .modal--md,
    .modal--lg,
    .modal--xl {
        width: 90% !important;
    }
}

/**
 * Card Enhancements
 * Additional card styles
 */
.card--hoverable {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.card--hoverable:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card--bordered {
    border: 1px solid #e0e0e0;
}

.card--compact {
    padding: 12px;
}

.card__header {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.card__body {
    padding: 16px;
}

.card__footer {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

/**
 * Button Enhancements
 * Additional button styles
 */
.btn--icon-only {
    padding: 0 12px;
    min-width: auto;
}

.btn--sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn--lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-group {
    display: inline-flex;
    gap: 0;
}

.btn-group .btn {
    border-radius: 0;
    margin: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.btn-group--vertical {
    flex-direction: column;
}

.btn-group--vertical .btn:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 0;
}

.btn-group--vertical .btn:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 0;
}

/**
 * Table Enhancements
 * Additional table styles
 */
.table--compact {
    font-size: 13px;
}

.table--compact th,
.table--compact td {
    padding: 8px;
}

.table--bordered {
    border: 1px solid #e0e0e0;
}

.table--bordered th,
.table--bordered td {
    border: 1px solid #e0e0e0;
}

.table--striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.table--hover tbody tr:hover {
    background-color: #f5f5f5;
}

/**
 * Badge Component
 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 12px;
}

.badge--primary {
    background-color: #7c7ab7;
    color: #fff;
}

.badge--success {
    background-color: #4CAF50;
    color: #fff;
}

.badge--error {
    background-color: #F44336;
    color: #fff;
}

.badge--warning {
    background-color: #FF9800;
    color: #fff;
}

.badge--info {
    background-color: #2196F3;
    color: #fff;
}

.badge--light {
    background-color: #f5f5f5;
    color: #666;
}

/**
 * Divider Component
 */
.divider--thick {
    height: 2px;
    background-color: #e0e0e0;
}

.divider--dashed {
    border-top: 1px dashed #e0e0e0;
}

/**
 * Loading Spinner
 */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #7c7ab7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner--sm {
    width: 16px;
    height: 16px;
}

.spinner--lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/**
 * Skeleton Loader
 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton--text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton--circle {
    border-radius: 50%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/**
 * Utility Classes
 */
.rounded {
    border-radius: 4px !important;
}

.rounded-lg {
    border-radius: 8px !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.shadow-md {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

.shadow-none {
    box-shadow: none !important;
}

