/* Shared component styles to keep non-dashboard pages visually consistent
   with the Tailwind-based dashboard look.
*/

:root {
    --primary: #3846b5;
    --primary-dark: #252f81;
    --primary-light: #cfd5ff;
    --primary-lighter: #eef0ff;
}

/* Tailwind utility overrides for the new primary color */
.from-purple-500,
.from-purple-600,
.from-purple-700,
.from-purple-800,
.from-purple-900 {
    --tw-gradient-from: #232e86 !important;
    --tw-gradient-to: #3846b5 !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-purple-700,
.to-purple-800,
.to-purple-900 {
    --tw-gradient-to: #252f81 !important;
}

.hover\:from-purple-600:hover {
    --tw-gradient-from: #3846b5 !important;
    --tw-gradient-to: #3846b5 !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.hover\:to-purple-800:hover {
    --tw-gradient-to: #252f81 !important;
}

.bg-purple-700 {
    background-color: var(--primary) !important;
}

.bg-purple-600 {
    background-color: #3b4ac8 !important;
}

.bg-purple-500 {
    background-color: #4656d6 !important;
}

.bg-purple-800 {
    background-color: var(--primary-dark) !important;
}

.hover\:bg-purple-700:hover {
    background-color: var(--primary) !important;
}

.hover\:bg-purple-800:hover {
    background-color: var(--primary-dark) !important;
}

.bg-purple-50 {
    background-color: var(--primary-lighter) !important;
}

.text-purple-700 {
    color: var(--primary) !important;
}

.text-purple-800 {
    color: var(--primary-dark) !important;
}

.text-purple-900 {
    color: #1c245f !important;
}

.hover\:text-purple-700:hover {
    color: var(--primary) !important;
}

.hover\:text-purple-800:hover {
    color: var(--primary-dark) !important;
}

.hover\:text-purple-900:hover {
    color: #1c245f !important;
}

.text-purple-100 {
    color: #e6e9ff !important;
}

.text-purple-200 {
    color: var(--primary-light) !important;
}

.border-purple-200 {
    border-color: var(--primary-light) !important;
}

.border-purple-300 {
    border-color: #b8c0ff !important;
}

.hover\:border-purple-300:hover {
    border-color: #b8c0ff !important;
}

.border-purple-500 {
    border-color: var(--primary) !important;
}

.border-purple-600 {
    border-color: var(--primary-dark) !important;
}

/* Basic components used across legacy Blade templates */
.card {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(90deg, #3846b5, #252f81);
    text-decoration: none;
    transition: filter 150ms ease;
}

.btn:hover {
    filter: brightness(0.95);
}

.btn-success {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border-right: 4px solid;
    margin: 1rem 0;
}

.alert-success {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    border-color: #ef4444;
    color: #7f1d1d;
}

.badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-open {
    background: #dbeafe;
    color: #1e40af;
}

.badge-closed {
    background: #dcfce7;
    color: #166534;
}

.badge-high {
    background: #fee2e2;
    color: #7f1d1d;
}

.form-group {
    margin: 0.75rem 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #111827;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #ffffff;
}

textarea.form-control {
    min-height: 120px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

table th {
    background: #f9fafb;
    font-weight: 700;
    color: #374151;
}
