a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #b32121;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: Arial, sans-serif;
    font-size: 14px;
    max-width: 90%;
    z-index: 1000;
    display: none;
}

    #blazor-error-ui a.reload {
        background: white;
        color: #b32121;
        padding: 0.4rem 0.8rem;
        border-radius: 4px;
        font-weight: bold;
        text-decoration: none;
        transition: background 0.3s ease, color 0.3s ease;
    }

        #blazor-error-ui a.reload:hover {
            background: #f7c0c0;
            color: #8b1a1a;
        }

    #blazor-error-ui a.dismiss {
        background: none;
        border: none;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        transition: color 0.3s ease;
    }

        #blazor-error-ui a.dismiss:hover {
            color: #ffdddd;
        }

.blazor-error-boundary {
    background: #ffebeb;
    color: #b32121;
    padding: 1rem;
    border: 1px solid #b32121;
    border-radius: 6px;
    font-weight: bold;
}

    .blazor-error-boundary::after {
        content: "An unexpected error has occurred.";
        display: block;
        font-size: 14px;
        margin-top: 5px;
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
/* Modern Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.3);
    /*backdrop-filter: blur(5px);*/
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.modal-container {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.required-asterisk {
    color: #dc3545;
}

.modern-input {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.2s;
}

    .modern-input:focus {
        border-color: #4d90fe;
        box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.2);
    }

.input-with-validation {
    position: relative;
}

.validation-message {
    bottom: -18px;
    font-size: 12px;
    color: #dc3545;
}

.editor-container {
    border-radius: 8px;
    overflow: hidden;
}

.attachment-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.attachment-icon {
    font-size: 24px;
    color: #e74c3c;
}

.attachment-info {
    flex: 1;
}

.attachment-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.attachment-meta {
    font-size: 13px;
    color: #777;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #777;
    cursor: pointer;
    transition: all 0.2s;
}

    .close-btn:hover {
        color: #333;
        transform: rotate(90deg);
    }

.with-spinner {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-container {
        margin: 0 15px;
    }
}
.rz-dialog {
    background-color: #00bfff !important;
    color: #000000;
}

