/* =====================================
   Enhanced Post Form Styles
   ===================================== */

.post-form-enhanced {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 32px;
}

.post-form-header {
    background: linear-gradient(135deg, #4a7c59 0%, #6b9b7a 100%);
    color: white;
    padding: 24px 28px;
}

.post-form-header h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 600;
}

.post-form-header h2 i {
    margin-right: 10px;
    opacity: 0.9;
}

.post-form-description {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.post-form-body {
    padding: 28px;
}

.post-form-enhanced .form-group {
    margin-bottom: 24px;
}

.post-form-enhanced .form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2d3a2d;
    font-weight: 600;
    font-size: 1rem;
}

.post-form-enhanced .form-group label i {
    color: #4a7c59;
    margin-right: 8px;
}

.form-control-large {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.05rem;
    border: 2px solid #e8f0e8;
    border-radius: 10px;
    transition: all 0.2s;
    background: #f8faf9;
}

.form-control-large:focus {
    outline: none;
    border-color: #4a7c59;
    background: white;
    box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.1);
}

.form-control-large option {
    padding: 8px;
}

textarea.form-control-large {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
    font-family: inherit;
}

/* Enhanced Character Counter */
.char-counter-enhanced {
    margin-top: 8px;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7c6b;
}

.char-counter-enhanced .char-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a7c59;
}

.char-counter-enhanced.warning .char-count {
    color: #e6a85c;
}

.char-counter-enhanced.danger .char-count {
    color: #e74c3c;
}

/* Enhanced Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #4a7c59 0%, #6b9b7a 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 14px rgba(74, 124, 89, 0.3);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit i {
    font-size: 1.2rem;
}

.post-guidelines {
    margin-top: 16px;
    text-align: center;
}

.post-guidelines small {
    color: #6b7c6b;
    font-size: 0.9rem;
}

.post-guidelines a {
    color: #4a7c59;
    font-weight: 500;
    text-decoration: none;
}

.post-guidelines a:hover {
    text-decoration: underline;
}

/* =====================================
   Logout Confirmation Modal
   ===================================== */

.confirm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.confirm-modal-overlay.active {
    display: flex;
}

.confirm-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.confirm-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e8f0e8;
}

.confirm-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #2d3a2d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.confirm-modal-header h3 i {
    color: #e6a85c;
}

.confirm-modal-body {
    padding: 24px;
}

.confirm-modal-body p {
    margin: 0;
    color: #6b7c6b;
    line-height: 1.6;
}

.confirm-modal-actions {
    padding: 20px 24px;
    display: flex;
    gap: 12px;
    background: #f8faf9;
}

.confirm-modal-actions .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: white;
    border: 2px solid #e8f0e8;
    color: #6b7c6b;
}

.btn-cancel:hover {
    background: #f8faf9;
    border-color: #4a7c59;
    color: #4a7c59;
}

.btn-confirm-logout {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-confirm-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .post-form-header {
        padding: 20px 24px;
    }

    .post-form-header h2 {
        font-size: 1.4rem;
    }

    .post-form-body {
        padding: 24px 20px;
    }

    .btn-submit {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .confirm-modal {
        width: 95%;
    }

    .confirm-modal-actions {
        flex-direction: column;
    }

    .confirm-modal-actions .btn {
        width: 100%;
    }
}