﻿/* CONTAINER */
.app-form-edit-container {
    padding: 25px;
    background: linear-gradient(135deg, #f5f9ff, #eaf3ff);
    min-height: 100vh;
}

/* HEADER */
.app-form-edit-header {
    margin-bottom: 20px;
}

    .app-form-edit-header h3 {
        font-weight: 600;
        color: #1b4f72;
    }

    .app-form-edit-header p {
        color: #6c757d;
        margin-top: -5px;
    }

/* FORM */
.app-form-edit-form {
    gap: 20px;
}

/* CARD STYLE */
.app-form-edit-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    gap: 2px;
}

/* ERRORS */
.app-form-edit-errors {
    margin-top: 10px;
    padding: 10px;
    background: #fff3f3;
    border-left: 4px solid #dc3545;
    border-radius: 6px;
    font-size: 13px;
}

/* ACTION BUTTONS */
.app-form-edit-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

    /* group containers */
    .app-form-edit-actions > div {
        display: flex;
    }

    /* 🔥 Make buttons equal size */
    .app-form-edit-actions .dx-button {
        width: 160px !important; /* same width */
        justify-content: center; /* center text */
    }

    /* ensure text is centered properly */
    .app-form-edit-actions .dx-button-content {
        width: 100%;
        text-align: center;
    }

/*slide layout EDITFORM*/


/* OVERLAY */
.app-slide-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: flex-end;
    z-index: 9999;
    pointer-events: none;
}

/* SHOW STATE */
.app-slide-overlay.show {
    pointer-events: all;
}

/* BACKDROP */
.app-slide-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
}

/* PANEL */
.app-slide-panel {
    position: relative;
    width: 65vw;
    max-width: 900px;
    height: 100%;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

/* ACTIVE SLIDE */
.app-slide-overlay.show .app-slide-panel {
    transform: translateX(0);
}

/* HEADER */
.app-slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #1b4f72, #2980b9);
    color: white;
}

/* BODY */
.app-slide-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    background: #f8fbff;
}

/* MOBILE */
@media (max-width: 768px) {
    .app-slide-panel {
        width: 100%;
        border-radius: 0;
    }
}