.tabs {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #fff;
    font-weight: 700;
}

.tab-headers {
    display: flex;
    background: #333;
    color: white;
}

.tab-headers div {
    padding: 10px 20px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    background: #333;
    border-right: 1px solid #555;
    transition: background 0.3s;
}

.tab-headers div:hover, .tab-headers .active {
    background: #555;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #999;
    border-radius: 4px;
}
.form-actions {
    text-align: right;
    margin-top: 20px;
}

.section-heading {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
}

.section-heading.center {
    text-align: center;
}

.form-group .pic {
    display: none;
    width: 150px;
    height: 150px;
    object-fit: cover; /* Keeps the image from stretching */
    border: 2px dashed #000000;
    border-radius: 8px;
    margin-top: 10px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


#foto-preview {
    transition: opacity 0.3s ease;
}


/* Floating Alert */
#floatingAlert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    min-width: 300px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    display: none;
}

#floatingAlert.visible {
    display: block;
    animation: floatIn 0.3s ease-out;
}

#floatingAlert.success {
    background: #d1fae5;
    border: 2px solid #059669;
    color: #065f46;
}

#floatingAlert.error {
    background: #fee2e2;
    border: 2px solid #dc2626;
    color: #991b1b;
}

@keyframes floatIn {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}