/* Styles scoped specifically to the modal */
#addPlanModal .modal-content {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

#addPlanModal .modal-header {
    border-bottom: none;
    padding: 0;
    position: relative;
}

#addPlanModal .modal-footer {
    border-top: none;
    display: flex;
    justify-content: center;
}

#addPlanModal .modal-title {
    font-size: 1.75rem;
    color: #1e3a8a;
    margin-bottom: 0;
    text-align: center;
    margin-left: 26px;
}

#addPlanModal .container {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#addPlanModal .header {
    margin-bottom: 30px;
    position: relative;
    padding-right: 2.5rem;
}

#addPlanModal .header h4 {
    font-size: 1.75rem;
    color: #1e3a8a;
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

#addPlanModal .header p {
    font-size: 1rem;
    color: #64748b;
    margin-top: 5px;
    text-align: center;
}

#addPlanModal .btn-close {
    position: absolute;
    top: -27px;
    right: -26px;
    z-index: 1051;
}

#addPlanModal .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

#addPlanModal .form-group label {
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 5px;
}

#addPlanModal .form-group input,
#addPlanModal .form-group select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    color: #334155;
    background-color: #f8fafc;
    transition: border-color 0.3s;
}

#addPlanModal .form-group input:focus,
#addPlanModal .form-group select:focus {
    border-color: #3b82f6;
    outline: none;
}

#addPlanModal .card-upload {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

#addPlanModal .upload-area {
    flex: 1;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #f1f5f9;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s, border-color 0.3s;
}

#addPlanModal .upload-area:hover {
    background-color: #e2e8f0;
    border-color: #3b82f6;
}

#addPlanModal .upload-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#addPlanModal .upload-area span {
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 1rem;
    font-weight: bold;
    color: #1e3a8a;
    z-index: 10;
}

#addPlanModal .dates-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

#addPlanModal .form-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

#addPlanModal .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#addPlanModal .checkbox-group input {
    margin-top: 0;
    vertical-align: middle;
}

#addPlanModal .checkbox-group label {
    margin-left: 8px;
    font-weight: bold;
    color: #1e293b;
    line-height: 1.5;
    vertical-align: middle;
}

#addPlanModal .custom-btn {
    background-color: transparent;
    border: none;
    padding: 0;
}

#addPlanModal .custom-btn:hover {
    color: #353535;
    background-color: #f1f5f9;
    transform: scale(1.05);
}

#addPlanModal .btn-text {
    margin-top: 30px;
    font-size: 1rem;
    color: black;
    text-align: center;
}
