﻿

/*#region LOGIN */

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    color: white;
}

.login-form {
    width: 30dvw;
    min-width: 350px;
    background-color: #252525;
    padding: 40px 35px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 1px solid #333;
}

/* כותרות */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

    .form-header h1 {
        color: #ffffff;
        font-size: 28px;
        margin-bottom: 8px;
        font-weight: 700;
    }

    .form-header p {
        color: #bbb;
        font-size: 16px;
    }

.form-group {
    position: relative;
    margin-bottom: 20px;
}


    .form-group i {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        color: #ffffff;
    }

.form-group input {
    width: 100%;
    padding: 16px 50px 16px 16px;
    background-color: #000000 !important;
    border: 1.5px solid #ffffff; /* בורדר לבן */
    border-radius: 10px;
    font-size: 16px;
    color: white; /* טקסט לבן בפנים */
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #ffffff;
    background-color: #000000;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

input::placeholder {
    color: #888;
}

.login-btn {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--rosy-white);
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s, background-color 0.2s;
}

    .login-btn:hover {
        background-color: #e6e6e6;
        transform: translateY(-2px);
    }

    .login-btn:active {
        transform: translateY(0);
    }

/* רספונסיביות לנייד */
@media (max-width: 480px) {
    .login-form {
        width: 90%;
        min-width: unset;
        padding: 30px 20px;
    }
}
/*#endregion */



#saveBtn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

    #saveBtn:hover {
        background: linear-gradient(to right, #5d7dfa, #9666e0);
        transform: translateY(-2px);
        box-shadow: 0 7px 14px rgba(110, 142, 251, 0.25);
    }

    #saveBtn:active {
        transform: translateY(0);
    }


.form-footer {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

    .form-footer a {
        color: #6e8efb;
        text-decoration: none;
        font-weight: 500;
    }

        .form-footer a:hover {
            text-decoration: underline;
        }

@media (max-width: 480px) {
    .login-form {
        padding: 30px 25px;
    }

    .form-header h1 {
        font-size: 24px;
    }

    input, button[type="submit"] {
        padding: 14px 45px 14px 14px;
    }
}


.admin-container {
    position: relative;
    width: 100vw;
    height: 100svh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.1, 1.1), width 0.4s ease-out;
    transform-origin: left center;
    will-change: transform;
    backface-visibility: hidden;
    background-color: white;
}

    .admin-container.shrink {
        width: 65vw;
    }

.admin-side-menu {
    width: 35vw;
}

.logout {
    position: absolute;
    top: 3rem;
    right: 5%;
    /*transform: translateX(-10%);*/
    z-index: 1000;
    display: flex;
    justify-content: center;
    width: 10svw;
    height: 5svh;
}


.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    padding: 0 2rem !important;
    min-width: 50px;
}

.btn-logout-small:hover {
    opacity: 0.8;
    background-color: #c82333;
}



/*header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}*/

.btn-danger:hover {
    background-color: #c82333;
}

hr {
}

/*#region BANNER */

.banner-button-update {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    text-align: center;
}

    .banner-button-update h1 {
        /*        margin-right: 1rem;
        font-weight: 500;
        font-size: 1.5rem;*/
    }

#bannerForm {
    width: 100%;
    max-width: 600px;
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.form-group {
    margin-bottom: 1.1rem;
    width: 100%;
    text-align: right;
    direction: rtl;
}

    .form-group label {
        display: block;
        margin-bottom: -0rem;
        /*font-weight: bold;*/
        color: #333;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 6px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 0.8rem;
    }

    .form-group textarea {
        min-height: 60px;
        resize: vertical;
    }

.banner-link {
    direction: ltr;
}

#saveBtn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    #saveBtn:hover {
        background-color: #45a049;
    }

/*#endregion */


/*#region UPLOAD VIDEO */

.upload-video {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2.5svh;
    min-height: 50svh;
}

    .upload-video h1 {
        margin-bottom: 2rem;
    }

.add-video {
    width: 30%;
    min-width: 400px;
    height: 50%;
}

/*#endregion */


@media (max-width: 600px) {

    .admin-container {
        padding-top: 0;
    }

        .admin-container.shrink {
            height: 100vh;
            position: relative;
            transform: scale(1) translateX(0) translateY(0);
            width: 65vw;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 35px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
        }

    .important-container.shrink .important-item {
        min-width: 200px;
    }

    .side-menu {
        width: 35vw;
    }
}







.benefit-item {
    border: 1px solid #ddd;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    position: relative;
}

.benefit-edit-controls {
    background: #f5f5f5;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: left;
}

    .benefit-edit-controls button {
        margin: 0 5px;
        padding: 5px 10px;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

        .benefit-edit-controls button:hover {
            background: #0056b3;
        }

.benefit-content img {
    float: right;
    margin-left: 15px;
    margin-bottom: 15px;
}

.benefit-content p {
    margin: 10px 0;
}

#benefitsControls {
    margin: 20px 0;
}

    #benefitsControls button {
        margin: 0 10px;
        padding: 10px 20px;
        background: #28a745;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

        #benefitsControls button:hover {
            background: #218838;
        }




/*ADMIN-BENEFITS*/
.important-container-update {
    direction: rtl;
    position: relative;
    display: flex;
    flex-direction: column;
}

.important-update {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    gap: 1rem;
}

/* קונטיינר ראשי */
.important-container-update {
    direction: rtl;
    padding: 20px;
    font-family: sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

    .important-container-update h1 {
        text-align: center;
        color: #333;
        margin-bottom: 30px;
    }

/* סידור הפריטים - ברירת מחדל למובייל (אחד מתחת לשני) */
.important-update {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* כרטיס פריט בודד */
.item-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: 1; /* מאפשר להם לגדול באופן שווה */
}

    .item-form h3 {
        margin-top: 0;
        color: #007bff;
        border-bottom: 2px solid #007bff;
        padding-bottom: 5px;
    }

    /* עיצוב שדות הקלט */
    .item-form div {
        margin-bottom: 15px;
    }

    .item-form label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        font-size: 0.9rem;
    }

    .item-form input[type="text"],
    .item-form select {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box; /* מבטיח שהפדינג לא יחרוג מהרוחב */
    }

    .item-form small {
        display: block;
        color: #666;
        margin-top: 4px;
    }

/* כפתור שמירה */
.save-btn {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

    .save-btn:hover {
        background-color: #218838;
    }


@media (min-width: 768px) {
    .important-update {
        flex-direction: row;
        align-items: stretch;
    }
}


.files-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    padding: 25px;
}

    .files-container h1 {
        text-align: center;
        margin: 2rem auto;
    }

.agreement-row {
    display: flex;
    gap: 30px;
}

.agreement-upload {
    flex: 1;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    border-right: 1px solid #e0e0e0;
    padding-right: 30px;
}

.agreement-delete-section {
    flex: 1;
    margin-top: 0;
}

.agreement-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.agreement-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agreement-file-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
}

    .agreement-file-input:focus {
        outline: none;
        border-color: #4a6ee0;
        background-color: #fff;
    }

.agreement-submit-btn {
    background-color: #4a6ee0;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: fit-content;
    transition: background-color 0.2s;
}

    .agreement-submit-btn:hover {
        background-color: #3a5bc7;
    }

.agreement-file-list {
    direction: rtl;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.agreement-file-item {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .agreement-file-item:last-child {
        border-bottom: none;
    }

    .agreement-file-item:hover {
        background-color: #f9f9f9;
    }

.agreement-file-info {
    flex-grow: 1;
}

.agreement-file-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
    word-break: break-word;
}

.agreement-delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    margin-left: 10px;
}

    .agreement-delete-btn:hover {
        background-color: #c0392b;
    }

.agreement-loading {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
}

.agreement-no-files {
    text-align: center;
    padding: 30px;
    color: #95a5a6;
    font-style: italic;
}


@media (max-width: 768px) {
    .agreement-row {
        flex-direction: column;
        gap: 20px;
    }

    .agreement-upload {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .agreement-container {
        padding: 15px;
    }
}







/*.benefit-admin-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: transparent;
    padding: 5px;
    border-radius: 5px;
    display: flex;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
}

    .benefit-admin-controls button {
        width: 35px;
        height: 35px;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .benefit-admin-controls .btn-edit {
        background: #ffc107;
        color: #212529;
    }

    .benefit-admin-controls .btn-delete {
        background: #dc3545;
        color: white;
    }

    .benefit-admin-controls button:hover {
        transform: scale(1.1);
    }

.benefit-card {
    position: relative !important;
}*/

/* מודל עריכה */
/*.benefit-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    .benefit-edit-modal .modal-content {
        background: white;
        padding: 30px;
        border-radius: 10px;
        width: 90%;
        max-width: 600px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .benefit-edit-modal h2 {
        margin-top: 0;
        color: #333;
        margin-bottom: 20px;
    }

    .benefit-edit-modal .form-group {
        margin: 15px 0;
    }

    .benefit-edit-modal label {
        display: block;*/
/*margin-bottom: 5px;*/
/*font-weight: bold;*/
/*color: #333;
    }

    .benefit-edit-modal input,
    .benefit-edit-modal textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-family: inherit;
        font-size: 14px;
        box-sizing: border-box;
    }

    .benefit-edit-modal textarea {
        resize: vertical;
        min-height: 100px;
    }

    .benefit-edit-modal .image-preview-container {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 10px;
    }

    .benefit-edit-modal .image-preview {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    .benefit-edit-modal .btn-change-image {
        padding: 8px 15px;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
    }

        .benefit-edit-modal .btn-change-image:hover {
            background: #0056b3;
        }

    .benefit-edit-modal .modal-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 20px;
    }

    .benefit-edit-modal .btn-cancel {
        padding: 10px 20px;
        background: #6c757d;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

        .benefit-edit-modal .btn-cancel:hover {
            background: #545b62;
        }

    .benefit-edit-modal .btn-save {
        padding: 10px 20px;
        background: #28a745;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

        .benefit-edit-modal .btn-save:hover {
            background: #218838;
        }*/


/*.admin-benefits-panel .btn-add {
        background: #28a745;
        color: white;
    }

        .admin-benefits-panel .btn-add:hover {
            background: #218838;
        }

    .admin-benefits-panel .btn-save {
        background: #ffc107;
        color: #212529;
    }

        .admin-benefits-panel .btn-save:hover {
            background: #e0a800;
        }*/


/*----------------------------------------------*/
/*.item-form {
    flex:1;
    border: 1px solid #ccc;
    padding: .5rem;
    margin: 15px 0;
    border-radius: 5px;
    background: #f9f9f9;
   
}

    .item-form > div {
        margin: 10px 0;
    }

label {
    font-size: 1rem;
    display: block;*/
/*font-weight: bold;*/
/*margin-bottom: 5px;*/
/*}*/

/*input, select {
    padding: 5px;
    margin: 5px 0;
    width: 100%;
    max-width: 400px;
}
*/
/*.save-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
}

    .save-btn:hover {
        background: #45a049;
    }*/
