/* Global Styles - Design System Foundation */

/* Alpine.js Cloak */
[x-cloak] {
    display: none !important;
}

/* Base Styles */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FAFBFC;
    color: #374151;
}

/* Override Bulma container to have more reasonable max-width */
.container {
    max-width: 1400px !important;
}

/* Utility Classes */
.has-text-primary-custom {
    color: #7B9DFF !important;
}

.has-text-muted {
    color: #6B7280 !important;
}

.has-text-light {
    color: #9CA3AF !important;
}

/* Button Enhancements */
.button.is-primary {
    background-color: #7B9DFF;
    border-color: transparent;
    transition: all 0.2s ease;
}

.button.is-primary:hover {
    background-color: #6A8EF5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 157, 255, 0.3);
}

.button.is-primary:active {
    transform: translateY(0);
}

.button.is-loading {
    pointer-events: none;
}

/* Box/Card Enhancements */
.box {
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Input Enhancements */
.input:focus,
.textarea:focus {
    border-color: #7B9DFF !important;
    box-shadow: 0 0 0 3px rgba(123, 157, 255, 0.1) !important;
}

/* Tag/Badge Enhancements */
.tag {
    border-radius: 6px;
    font-weight: 500;
}

/* Progress Bar */
.progress {
    border-radius: 4px;
    background-color: #E5E7EB;
}

.progress::-webkit-progress-value {
    background-color: #7B9DFF;
    border-radius: 4px;
}

.progress::-moz-progress-bar {
    background-color: #7B9DFF;
    border-radius: 4px;
}

.progress.is-primary::-webkit-progress-value {
    background-color: #7B9DFF;
}

/* Table Enhancements */
.table {
    background-color: #FFFFFF;
}

.table thead {
    background-color: #F9FAFB;
}

.table thead th {
    color: #6B7280;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.025em;
    border-bottom: 1px solid #E5E7EB;
}

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

.table td {
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
}

/* Modal Enhancements */
.modal-card {
    border-radius: 12px;
    overflow: hidden;
}

.modal-card-head {
    background-color: #FAFBFC;
    border-bottom: 1px solid #E5E7EB;
}

.modal-card-foot {
    background-color: #FAFBFC;
    border-top: 1px solid #E5E7EB;
}

/* Notification Enhancements */
.notification {
    border-radius: 8px;
    border: 1px solid;
}

.notification.is-info {
    background-color: #EFF6FF;
    border-color: #DBEAFE;
    color: #1E40AF;
}

.notification.is-success {
    background-color: #ECFDF5;
    border-color: #D1FAE5;
    color: #065F46;
}

.notification.is-warning {
    background-color: #FEF3C7;
    border-color: #FDE68A;
    color: #92400E;
}

.notification.is-danger {
    background-color: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

/* Link Styles */
a {
    color: #7B9DFF;
    transition: color 0.2s ease;
}

a:hover {
    color: #6A8EF5;
}

/* Responsive Utilities */
@media screen and (max-width: 768px) {
    body {
        font-size: 0.9375rem;
    }
}

/* Loading State */
.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Smooth Transitions */
button,
.button,
a,
input,
textarea,
select {
    transition: all 0.2s ease;
}
