/* ============================================
   MODERN SOFT DESIGN SYSTEM
   ============================================ */

/* Base Typography */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2d3748;
}

/* Soft Shadows */
.brutal-shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.brutal-shadow-lg {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);
}

.brutal-shadow-hover:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

/* Soft Borders */
.brutal-border {
    border: 1px solid #e2e8f0 !important;
}

.brutal-border-thick {
    border: 2px solid #cbd5e0 !important;
}

/* Modern Buttons */
.btn {
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #5568d3 0%, #6a4193 100%) !important;
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%) !important;
    color: #fff !important;
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: #fff !important;
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: #fff !important;
}

.btn-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    color: #fff !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    color: #667eea !important;
    border: 2px solid #667eea !important;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
}

.btn-outline-success {
    background-color: transparent !important;
    color: #56ab2f !important;
    border: 2px solid #56ab2f !important;
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%) !important;
    color: #fff !important;
}

.btn-outline-info {
    background-color: transparent !important;
    color: #4facfe !important;
    border: 2px solid #4facfe !important;
}

.btn-outline-info:hover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: #fff !important;
}

/* Modern Cards */
.card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    background-color: #fff;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: 1px solid #e2e8f0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

.card-footer {
    border-top: 1px solid #e2e8f0 !important;
    background-color: #f7fafc !important;
    border-radius: 0 0 12px 12px !important;
}

/* Modern Forms */
.form-control,
.form-select {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-weight: 400;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    transform: none;
}

.input-group-text {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px 0 0 8px !important;
    background-color: #f7fafc;
    font-weight: 500;
    color: #4a5568;
}

/* Modern Tables */
.table {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.table thead {
    border-bottom: 2px solid #e2e8f0 !important;
}

.table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff;
    border: none !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 12px;
}

.table td {
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 400;
    padding: 12px;
}

.table-hover tbody tr:hover {
    background-color: #f7fafc !important;
    cursor: pointer;
}

/* Modern Badges */
.badge {
    border: none !important;
    border-radius: 20px !important;
    padding: 6px 12px;
    font-weight: 500;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
}

.bg-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%) !important;
    color: #fff !important;
}

.bg-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: #fff !important;
}

.bg-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    color: #fff !important;
}

.bg-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: #fff !important;
}

.bg-secondary {
    background-color: #cbd5e0 !important;
    color: #2d3748 !important;
}

/* Modern Alerts */
.alert {
    border: none !important;
    border-radius: 8px !important;
    font-weight: 400;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modern List Groups */
.list-group-item {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-bottom: 4px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f7fafc !important;
    transform: translateX(4px);
}

/* Modern Spinners */
.spinner-border {
    border-width: 3px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #2d3748;
}

h1 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

/* Links */
a {
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #764ba2;
}

/* Modern Navbar */
.navbar {
    border-bottom: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.nav-link {
    font-weight: 500 !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    margin: 0 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

/* Dropdown */
.dropdown-menu {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 8px;
}

.dropdown-item {
    border-bottom: none;
    font-weight: 400;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f7fafc !important;
    color: #667eea;
}

.dropdown-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Icons */
.bi {
    font-weight: normal;
}

/* Footer */
.footer {
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: none;
    background-color: #fff;
}

/* Content padding */
.content {
    padding-top: 2rem;
}

/* Focus states */
.btn:focus,
.btn:active:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
    outline: none !important;
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    border-color: #56ab2f !important;
    box-shadow: 0 0 0 3px rgba(86, 171, 47, 0.1) !important;
}

.invalid {
    border-color: #f5576c !important;
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.1) !important;
}

.validation-message {
    color: #f5576c;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Error Boundary */
.blazor-error-boundary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 1.5rem;
    color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Checkbox modern style */
.form-check-input {
    border: 2px solid #cbd5e0 !important;
    border-radius: 4px !important;
    width: 1.25rem;
    height: 1.25rem;
}

.form-check-input:checked {
    background-color: #667eea !important;
    border-color: #667eea !important;
}

/* Custom modern utilities */
.brutal-text {
    font-weight: 600;
}

.brutal-bg-yellow {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.brutal-bg-green {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.brutal-bg-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.brutal-bg-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.brutal-bg-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.brutal-bg-white {
    background-color: #fff;
}

/* Animations */
@keyframes brutalist-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.brutal-pop:hover {
    animation: brutalist-pop 0.3s ease;
}
