﻿:root {
    --bg-color: #F3F8F4;
    --primary-green: #25652C;
    --light-green: #CFE0D0;
    --accent-orange: #F99D27;
    --text-dark: #0C2710;
    --text-muted: #7A7A7A;
    --white: #ffffff;
    --border-color: #E6EFE7;
}

/* ============================= */
/*            Global             */
/* ============================= */

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================= */
/*            Card               */
/* ============================= */

.create-article-card {
    background: transparent;
    border-radius: 24px;
    box-shadow: none;
    max-width: 1100px;
    width: 100%;
    display: flex;
    gap: 24px;
    direction: ltr;
}


/* ============================= */
/*   Left Column (Illustration)  */
/* ============================= */

.side-illustration {
    background-color: var(--white);
    width: 25%;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 0 24px 24px;
}

    /* اللوح الأخضر المنحني */
    .side-illustration::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 58%;
        background: var(--light-green);
        border-bottom-right-radius: 320px;
        z-index: 1;
    }

    /* صورة الكاتب */
    .side-illustration .left-illustration {
        width: 100%;
        position: relative;
        z-index: 2;
        margin: 0;
        filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.10));
    }

/* ============================= */
/*      Right Column (Form)      */
/* ============================= */

.form-section {
    width: 65%;
    padding: 40px 50px;
    background: var(--white);
    border-radius: 18px;
    direction: rtl;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    color: var(--primary-green);
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0;
}

/* ============================= */
/*          Form Inputs          */
/* ============================= */

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.custom-input {
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 20px;
}

    .custom-input:focus {
        outline: none;
        border-color: var(--primary-green);
        box-shadow: 0 0 0 3px rgba(37, 101, 44, 0.05);
    }

/* ============================= */
/*          Upload Area          */
/* ============================= */

.upload-area {
    border: 2px dashed #D7E6DA;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background: #FAFAFA;
}

    .upload-area:hover,
    .upload-area.dragover {
        border-color: var(--accent-orange);
        background: #FFFBF5;
    }

.upload-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-green);
    font-size: 2rem;
}

.upload-text-main {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

    .upload-text-main span {
        color: #25652C;
        text-decoration: underline;
    }

.upload-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================= */
/*            Editor             */
/* ============================= */

.editor-container {
    margin-bottom: 20px;
}

.hint-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.hint-dot {
    width: 8px;
    height: 8px;
    background-color: #1FB655;
    border-radius: 50%;
}

/* ============================= */
/*            Buttons            */
/* ============================= */

.actions-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-publish {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 0;
    font-weight: 800;
    flex-grow: 1;
    transition: all 0.3s ease;
}

    .btn-publish:hover {
        background-color: #e68a10;
        transform: translateY(-2px);
    }

.btn-cancel {
    background-color: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 800;
    transition: all 0.3s ease;
}

    .btn-cancel:hover {
        background-color: #FFFBF5;
    }


.create-page-header {
    width: 100%;
    max-width: 1100px;
    margin-bottom: 18px;
    padding-right: 68px;
    direction: rtl;
    padding-top: 10px;
}

    .create-page-header .page-title {
        color: var(--primary-green);
        font-weight: 700;
        font-size: 36px;
        margin: 0;
        font-weight: bold;
    }

/* ============================= */
/*   Current uploaded file UI   */
/* ============================= */

.current-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F1F4F8;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    gap: 14px;
}

.file-left {
    display: flex;
    align-items: center;
}

.delete-file-btn {
    background: #fff;
    border: 1px solid #eee;
    color: #FF4D4F;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
}

    .delete-file-btn:hover {
        background: #ffecec;
    }

.file-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
}

.file-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.file-check {
    color: #22c55e;
    font-size: 14px;
}

.file-right img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}


.current-image-box img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.create-page-header.header-inline {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; 
}

/* العنوان */
.create-page-header .page-title {
    margin: 0;
    white-space: nowrap; 
    width: auto !important; 
}

/* الأزرار */
.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0; 
}

.readonly-input {
    background-color: #f1f3f5; /* رمادي فاتح */
    color: #6c757d; /* لون نص هادئ */
    border: 1.5px dashed #ced4da; /* حدود مختلفة */
    cursor: not-allowed;
}

    .readonly-input:focus {
        outline: none;
        box-shadow: none;
    }

/* ============================= */
/*           Responsive          */
/* ============================= */

@media (max-width: 992px) {
    .side-illustration {
        display: none;
    }

    .create-article-card {
        padding: 0;
        gap: 0;
    }

    .form-section {
        width: 100%;
        padding: 30px;
        border-radius: 24px;
    }


}
