/**
 * CHC Hashtag Modal Styles
 */

/* Modal Container */
.chc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Overlay */
.chc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Modal Content */
.chc-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Modal Header */
.chc-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e5eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chc-modal-header h3 {
    margin: 0;
    font-family: "Mona Sans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #333333;
}

.chc-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.chc-modal-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Modal Body */
.chc-modal-body {
    padding: 24px;
}

.chc-modal-description {
    margin: 0 0 20px 0;
    font-family: "Mona Sans", sans-serif;
    color: #666666;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

/* Hashtag Textarea Wrapper */
.chc-hashtag-textarea-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.chc-hashtag-lines {
    position: absolute;
    left: 12px;
    top: 10px;
    pointer-events: none;
    z-index: 10;
    line-height: 1.5;
    font-family: monospace;
    font-size: 14px;
    color: #6b7280;
    user-select: none;
}

.chc-hashtag-line-prefix {
    height: 21px;
    line-height: 21px;
}

.chc-hashtag-textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px 12px 10px 28px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    position: relative;
    z-index: 2;
    background: transparent;
}

.chc-hashtag-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chc-hashtag-textarea::placeholder {
    color: #9ca3af;
}

/* Modal Actions */
.chc-modal-actions {
    margin-top: 16px;
}

/* Modal Footer */
.chc-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* Buttons */
.chc-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: "Mona Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    outline: none;
}

.chc-btn-primary {
    background-color: #0c78be !important;
    color: #ffffff !important;
    border-color: #0c78be !important;
}

.chc-btn-primary:hover:not(:disabled) {
    background-color: #60a5fa !important;
    border-color: #60a5fa !important;
}

.chc-btn-secondary {
    background-color: #f3f4f6 !important;
    color: #333333 !important;
    border: 1px solid #e0e5eb !important;
}

.chc-btn-secondary:hover:not(:disabled) {
    background-color: #ffffff !important;
    border-color: #d1d5db !important;
}

.chc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}