/* Share Modal Styles */

/* Success Toast */
.share-success-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: #F5FDE8;
    border: 1px solid #D3F4A2;
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 10000;
    width: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.share-success-content {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #155724;
    font-family: Calibri;
    font-size: 12px;
}

.share-success-icon {
    width: 16px;
    height: 16px;
}

.share-success-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.share-success-close-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal-overlay.show {
    opacity: 1;
}

.share-modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 580px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal-overlay.show .share-modal {
    transform: scale(1);
}

/* Header */
.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 0 28px;
    border-bottom: none;
}

.share-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    font-family: Calibri;
}


.share-modal-close {
    background: white;
    border: 1px solid #d0d0d0;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    line-height: 1;
}


/* Body */
.share-modal-body {
    padding: 10px 32px 28px 32px;
}

.share-modal-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
    font-family: Calibri;
    line-height: 1.4;
}

/* Form */
.share-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.share-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.share-form-group {
    display: flex;
    flex-direction: column;
}

.share-input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    font-family: Calibri;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.share-input:hover,
.share-input:focus {
    outline: none;
    border-color: #808080;
}

.share-input::placeholder {
    color: #999;
}

.share-input-error {
    border-color: #D50404 !important;
}

.share-error-message {
    color: #D50404;
    font-size: 14px;
    font-family: Calibri;
    margin-top: 4px;
    min-height: 20px;
    line-height: 1.4;
    display: block;
}

/* Checkbox */
.share-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.share-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #A6A6A6;
    border-radius: 2px;
    background-color: white;
    position: relative;
}

.share-checkbox:checked {
    background-color: white;
    border-color: #A6A6A6;
}

.share-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 10px;
    font-weight: bold;
}

.share-checkbox-text {
    font-size: 12px;
    color: #666;
    font-family: Calibri;
}

/* Submit Button */
.share-submit-btn {
    background-color: #0057b8;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    font-family: Calibri;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: auto;
    text-align: center;
    margin: 0;
}

.share-submit-btn:hover {
    background-color: #004494;
}

.share-submit-btn:active {
    transform: scale(0.98);
}

.share-submit-btn:focus {
    outline: none;
}

/* Responsive */
@media (max-width: 576px) {
    .share-modal {
        width: 95%;
        margin: 16px;
    }

    .share-modal-header {
        padding: 20px 24px;
    }

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

    .share-modal-title {
        font-size: 18px;
    }

    .share-modal-icon {
        font-size: 16px;
    }

    .share-modal-close {
        font-size: 18px;
        width: 30px;
        height: 30px;
    }

    .share-modal-close i {
        font-size: 18px;
    }
}

