/**
 * Custom Dialogs Styles
 * Dialogs personalizados para substituir alert() e confirm() nativos
 * 
 * @package VitaminaWeb\SuperApp\Assets
 */

/* Overlay */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.custom-dialog-overlay.show {
    opacity: 1;
}

/* Dialog Container */
.custom-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.custom-dialog-overlay.show .custom-dialog {
    transform: scale(1);
}

/* Dialog Content */
.custom-dialog-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header */
.custom-dialog-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-gray-200, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-gray-50, #f9fafb);
}

.custom-dialog-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-gray-900, #111827);
}

.custom-dialog-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--color-gray-400, #9ca3af);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.custom-dialog-close:hover {
    background: var(--color-gray-100, #f3f4f6);
    color: var(--color-gray-600, #4b5563);
}

/* Body */
.custom-dialog-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.custom-dialog-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-gray-700, #374151);
}

/* Footer */
.custom-dialog-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-gray-200, #e5e7eb);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: var(--color-gray-50, #f9fafb);
}

.custom-dialog-footer button {
    min-width: 100px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.custom-dialog-btn-ok,
.custom-dialog-btn-confirm {
    background: var(--color-primary, #00A8E8);
    color: white;
}

.custom-dialog-btn-ok:hover,
.custom-dialog-btn-confirm:hover {
    background: var(--color-primary-600, #0088c7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
}

.custom-dialog-btn-cancel {
    background: var(--color-gray-200, #e5e7eb);
    color: var(--color-gray-700, #374151);
}

.custom-dialog-btn-cancel:hover {
    background: var(--color-gray-300, #d1d5db);
    transform: translateY(-1px);
}

.custom-dialog-btn-ok:active,
.custom-dialog-btn-confirm:active,
.custom-dialog-btn-cancel:active {
    transform: translateY(0);
}

/* Focus states */
.custom-dialog-btn-ok:focus,
.custom-dialog-btn-confirm:focus,
.custom-dialog-btn-cancel:focus {
    outline: 2px solid var(--color-primary, #00A8E8);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 640px) {
    .custom-dialog {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .custom-dialog-header {
        padding: 16px 20px;
    }
    
    .custom-dialog-title {
        font-size: 16px;
    }
    
    .custom-dialog-body {
        padding: 20px;
    }
    
    .custom-dialog-footer {
        padding: 12px 20px;
        flex-direction: column-reverse;
    }
    
    .custom-dialog-footer button {
        width: 100%;
    }
}

/* Dark mode support (se aplicável) */
@media (prefers-color-scheme: dark) {
    .custom-dialog {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .custom-dialog-header,
    .custom-dialog-footer {
        background: #111827;
        border-color: #374151;
    }
    
    .custom-dialog-title {
        color: #f9fafb;
    }
    
    .custom-dialog-message {
        color: #d1d5db;
    }
    
    .custom-dialog-btn-cancel {
        background: #374151;
        color: #f9fafb;
    }
    
    .custom-dialog-btn-cancel:hover {
        background: #4b5563;
    }
}

 * Custom Dialogs Styles
 * Dialogs personalizados para substituir alert() e confirm() nativos
 * 
 * @package VitaminaWeb\SuperApp\Assets
 */

/* Overlay */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.custom-dialog-overlay.show {
    opacity: 1;
}

/* Dialog Container */
.custom-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.custom-dialog-overlay.show .custom-dialog {
    transform: scale(1);
}

/* Dialog Content */
.custom-dialog-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header */
.custom-dialog-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-gray-200, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-gray-50, #f9fafb);
}

.custom-dialog-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-gray-900, #111827);
}

.custom-dialog-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--color-gray-400, #9ca3af);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.custom-dialog-close:hover {
    background: var(--color-gray-100, #f3f4f6);
    color: var(--color-gray-600, #4b5563);
}

/* Body */
.custom-dialog-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.custom-dialog-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-gray-700, #374151);
}

/* Footer */
.custom-dialog-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-gray-200, #e5e7eb);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: var(--color-gray-50, #f9fafb);
}

.custom-dialog-footer button {
    min-width: 100px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.custom-dialog-btn-ok,
.custom-dialog-btn-confirm {
    background: var(--color-primary, #00A8E8);
    color: white;
}

.custom-dialog-btn-ok:hover,
.custom-dialog-btn-confirm:hover {
    background: var(--color-primary-600, #0088c7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
}

.custom-dialog-btn-cancel {
    background: var(--color-gray-200, #e5e7eb);
    color: var(--color-gray-700, #374151);
}

.custom-dialog-btn-cancel:hover {
    background: var(--color-gray-300, #d1d5db);
    transform: translateY(-1px);
}

.custom-dialog-btn-ok:active,
.custom-dialog-btn-confirm:active,
.custom-dialog-btn-cancel:active {
    transform: translateY(0);
}

/* Focus states */
.custom-dialog-btn-ok:focus,
.custom-dialog-btn-confirm:focus,
.custom-dialog-btn-cancel:focus {
    outline: 2px solid var(--color-primary, #00A8E8);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 640px) {
    .custom-dialog {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .custom-dialog-header {
        padding: 16px 20px;
    }
    
    .custom-dialog-title {
        font-size: 16px;
    }
    
    .custom-dialog-body {
        padding: 20px;
    }
    
    .custom-dialog-footer {
        padding: 12px 20px;
        flex-direction: column-reverse;
    }
    
    .custom-dialog-footer button {
        width: 100%;
    }
}

/* Dark mode support (se aplicável) */
@media (prefers-color-scheme: dark) {
    .custom-dialog {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .custom-dialog-header,
    .custom-dialog-footer {
        background: #111827;
        border-color: #374151;
    }
    
    .custom-dialog-title {
        color: #f9fafb;
    }
    
    .custom-dialog-message {
        color: #d1d5db;
    }
    
    .custom-dialog-btn-cancel {
        background: #374151;
        color: #f9fafb;
    }
    
    .custom-dialog-btn-cancel:hover {
        background: #4b5563;
    }
}

