/* Dialog utility styles for success and error dialogs */

.dialog-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.dialog-overlay.show {
    opacity: 1 !important;
}

.dialog-container {
    padding: 1px;
    background: white !important;
    border-radius: 0 !important;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15) !important;
    max-width: 400px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    position: relative !important;
    margin: auto !important;
    transform: scale(0.7) !important;
    transition: transform 0.3s ease !important;
    font-family: "Meiryo", "Yu Gothic", "Hiragino Sans", sans-serif !important;
}

.dialog-overlay.show .dialog-container {
    transform: scale(1) !important;
}

.dialog-header {
    padding: 8px 15px !important;
    border-bottom: none !important;
    background: linear-gradient(135deg, #ff6600 0%, #ffcc00 100%) !important;
    border-radius: 0 !important;
    position: relative !important;
}

.dialog-header::before {
    content: "" !important;
    height: 4px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

.dialog-header h3 {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: white !important;
    text-align: left !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
}

.dialog-content {
    padding: 25px 20px !important;
    text-align: left !important;
    background: #faf5f0 !important;
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}

.dialog-content.center {
    text-align: left !important;
}

.dialog-content.error-list {
    text-align: left !important;
}

.dialog-content .error-count {
    font-weight: bold !important;
    color: #d73527 !important;
    margin-bottom: 10px !important;
}

.dialog-content .error-messages {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.dialog-content .error-messages li {
    margin-bottom: 8px !important;
    padding-left: 0 !important;
}

.success-icon {
    display: none !important;
}

.error-icon {
    display: none !important;
}

.dialog-content p {
    margin: 8px 0 !important;
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}

.dialog-content p strong {
    color: #333 !important;
    font-weight: 600 !important;
}

.dialog-footer {
    padding: 15px 20px 20px !important;
    display: flex !important;
    justify-content: center !important;
    background: #faf5f0 !important;
    border-radius: 0 !important;
    border-top: none !important;
}

.dialog-button-ok {
    background: linear-gradient(135deg, #ff6600 0%, #ff9900 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 25px !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 60px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.dialog-button-ok:hover {
    background: linear-gradient(135deg, #e55a00 0%, #e68a00 100%) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

.dialog-button-ok:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.4) !important;
}

.dialog-button-ok:active {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

.dialog-button-yes {
    background: linear-gradient(135deg, #ff6600 0%, #ff9900 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 25px !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 60px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    margin: 0 5px !important;
}

.dialog-button-no {
    background: linear-gradient(135deg, #ff6600 0%, #ff9900 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 25px !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 60px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    margin: 0 5px !important;
}

.dialog-button-yes:hover, .dialog-button-no:hover {
    background: linear-gradient(135deg, #e55a00 0%, #e68a00 100%) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

.dialog-button-yes:active, .dialog-button-no:active {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dialog-container {
        max-width: 95% !important;
        margin: 10px !important;
    }

    .dialog-header {
        padding: 6px 12px !important;
    }

    .dialog-content {
        padding: 20px 15px !important;
    }

    .dialog-footer {
        padding: 12px 15px 15px !important;
    }

    .dialog-header h3 {
        font-size: 13px !important;
    }

    .dialog-button-ok, .dialog-button-yes, .dialog-button-no {
        padding: 7px 20px !important;
        font-size: 12px !important;
        min-width: 50px !important;
    }
}


.success-icon {
    font-size: 48px;
    color: #28a745;
    text-align: center;
    margin-bottom: 15px;
}

.error-icon {
    font-size: 48px;
    color: #dc3545;
    text-align: center;
    margin-bottom: 15px;
}

.success-header {
    background-color: #d4edda;
    color: #155724;
}

.error-header {
    background-color: #f8d7da;
    color: #721c24;
}

.success-button {
    background-color: #28a745;
    color: white;
}

.error-button {
    background-color: #dc3545;
    color: white;
}

/* Error message text formatting */
.error-message-text {
    white-space: pre-line;
    text-align: left;
}

.success-message-text {
    white-space: pre-line;
    text-align: left;
}
