/* Background - Seafoam gradient */
body {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #a7f3d0 100%);
    min-height: 100vh;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.5;
}

/* Navbar - Rich Teal */
.navbar {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.2);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-size: 1.25rem !important;
    font-weight: 600;
    color: white !important;
}

/* Container styling */
.container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(13, 148, 136, 0.1);
}

/* Breadcrumb styling */
.breadcrumb {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.breadcrumb-item a {
    color: #0d9488;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #0f766e;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #64748b;
    font-weight: 500;
}

/* Page title styling */
h5 {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.25rem;
    border-bottom: 3px solid #0d9488;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Form styling */
#mainForm {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(13, 148, 136, 0.1);
}

/* Form row spacing */
.row {
    margin-bottom: 1rem;
}

/* Label styling */
.col-form-label {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    padding-top: 0.319rem;
    padding-bottom: 0.319rem;
}

/* Button styling - 30% smaller */
.btn {
    border-radius: 8px;
    padding: 0.446rem 0.744rem;
    font-size: 0.744rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    color: white;
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border: none;
    color: white;
    box-shadow: 0 3px 8px rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 116, 139, 0.4);
}

/* Input styling */
.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.638rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-control:focus, .form-select:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
    background-color: #f0fdfa;
}

.form-control:hover, .form-select:hover {
    border-color: #14b8a6;
}

/* Textarea specific */
textarea.form-control {
    min-height: 85px;
    resize: vertical;
}

/* Checkbox and Switch styling */
.form-check {
    margin-bottom: 0.75rem;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-label {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
}

.form-switch .form-check-input {
    background-color: #d1d5db;
    border-color: #d1d5db;
}

.form-switch .form-check-input:checked {
    background-color: #0d9488;
    border-color: #0d9488;
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}

/* Table styling */
.table {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    font-size: 1rem;
}

.table th {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.85rem 0.638rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    color: #374151;
    padding: 0.638rem;
    border-bottom: 1px solid #f1f5f9;
}

.table-hover tbody tr:hover {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
}

/* Modal styling */
.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 2px solid #e2e8f0;
    background-color: #f8fafc;
}

/* Toast styling */
.toast {
    font-size: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.toast-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.toast-header.bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

.toast-header.bg-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.toast-body {
    padding: 1rem;
    color: #374151;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    color: #0d9488;
    border-left: 4px solid #14b8a6;
}

/* Dropdown styling */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    font-size: 1rem;
    background-color: white;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    color: #0d9488;
}

.dropdown-divider {
    border-color: #e2e8f0;
}

/* Link styling */
a {
    color: #0d9488;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: #0f766e;
    text-decoration: underline;
}

/* Badge styling */
.badge {
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

/* CodeMirror styling */
.CodeMirror {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.CodeMirror:focus-within {
    border-color: #0d9488;
}

/* Card styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    border-bottom: none;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pre styling for JSON content */
pre {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #374151;
    font-size: 0.875rem;
}

/* Button close styling */
.btn-close {
    filter: brightness(0) invert(1);
}

/* Focus states */
*:focus {
    outline: 2px solid rgba(13, 148, 136, 0.5);
    outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}
