:root {
    --primary: #2874f0;
    --surface: #ffffff;
    --border: #e0e0e0;
    --text: #212121;
    --text-muted: #878787;
    --success: #388e3c;
    --error: #d32f2f;
}

body {
    padding: 20px;
    background: #f8f9fa;
    font-family: 'Outfit', sans-serif;
    color: var(--text);
}

.form-container {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 24px;
    border-bottom: 2px solid #f1f3f6;
    padding-bottom: 15px;
}

.form-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: span 2;
}

label {
    font-size: 13px;
    font-weight: 600;
}

input,
select,
textarea {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(40, 116, 240, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #1e5bbd;
}

.btn-secondary {
    background: #f1f3f6;
    color: var(--text);
}

.status-msg {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.status-msg.success {
    background: #e8f5e9;
    color: var(--success);
    display: block;
}

/* Global Tooltip Format */
.delete-tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.delete-tooltip-wrapper .tooltip-content {
    visibility: hidden;
    width: max-content;
    max-width: 250px;
    min-width: 180px;
    background-color: #fef2f2;
    color: #991b1b;
    text-align: center;
    border-radius: 12px;
    padding: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(153, 27, 27, 0.15);
    border: 1.5px solid #fecaca;
    pointer-events: none;
    white-space: normal !important;
    word-wrap: break-word;
}

.delete-tooltip-wrapper .tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #fecaca transparent transparent transparent;
}

.delete-tooltip-wrapper:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Base Delete Button Styles (Shared across forms) */
.btn-delete {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: none !important;
    transition: 0.3s !important;
}

.btn-delete:hover {
    background: #fecaca !important;
    color: #7f1d1d !important;
}

.status-msg.error {
    background: #ffebee;
    color: var(--error);
    display: block;
}

/* Tooltip Alignment Helper for Right-aligned buttons */
.tooltip-right {
    left: auto !important;
    right: 0 !important;
    transform: translateX(0) !important;
}

.delete-tooltip-wrapper:hover .tooltip-right {
    transform: translateX(0) translateY(-10px) !important;
}

.tooltip-right::after {
    left: auto !important;
    right: 30px !important;
    margin-left: 0 !important;
}