@import "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css";

.garrula-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.garrula-alert {
    display: flex;
    align-items: flex-start;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    font-family: sans-serif;
    padding: 16px 20px;
    max-width: 400px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.garrula-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1001;
    border-radius: 12px;
    padding: 28px;
    max-width: 500px;
    min-width: 320px;
    font-family: sans-serif;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.garrula-show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.garrula-modal.garrula-show {
    transform: translate(-50%, -50%) scale(1) !important;
}

.garrula-hide {
    opacity: 0 !important;
    transform: translateY(20px) !important;
}

.garrula-modal.garrula-hide {
    transform: translate(-50%, -50%) scale(0.9) !important;
}

.garrula-alert .garrula-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.garrula-alert .garrula-content {
    flex: 1;
    margin: 0 16px;
    padding-right: 8px;
}

.garrula-alert .garrula-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.garrula-alert .garrula-message {
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.5;
}

.garrula-alert .garrula-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
    margin-top: -4px;
    font-family: sans-serif;
    border-radius: 50%;
}

.garrula-alert .garrula-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.garrula-alert .garrula-close:active {
    transform: scale(0.95);
}

.garrula-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    pointer-events: auto;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

.garrula-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.garrula-modal-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-family: sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    text-align: center;
}

.garrula-modal-button-primary {
    background-color: #3498db;
    color: white;
}

.garrula-modal-button-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.garrula-modal-button-secondary {
    background-color: #95a5a6;
    color: white;
}

.garrula-modal-button-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.garrula-modal-button-link {
    background-color: transparent;
    color: inherit;
    text-decoration: underline;
}

.garrula-modal-button-link:hover {
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.05);
}

.garrula-modal-form {
    margin-top: 20px;
}

.garrula-modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    background-color: white;
    color: #333;
    font-family: sans-serif;
    font-size: 1rem;
    margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.garrula-modal-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.garrula-modal-input::placeholder {
    color: #95a5a6;
}

.garrula-modal-small {
    max-width: 400px;
    padding: 24px;
}

.garrula-modal-large {
    max-width: 600px;
    padding: 32px;
}

.garrula-modal-fullscreen {
    max-width: 90%;
    max-height: 90%;
    width: 90%;
    height: auto;
    padding: 32px;
    overflow-y: auto;
}

.garrula-top-left {
    top: 20px;
    left: 20px;
    position: fixed;
}

.garrula-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    position: fixed;
}

.garrula-top-center.garrula-show {
    transform: translateX(-50%) translateY(0) !important;
}

.garrula-top-right {
    top: 20px;
    right: 20px;
    position: fixed;
}

.garrula-middle-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    position: fixed;
}

.garrula-bottom-left {
    bottom: 20px;
    left: 20px;
    position: fixed;
}

.garrula-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    position: fixed;
}

.garrula-bottom-center.garrula-show {
    transform: translateX(-50%) translateY(0) !important;
}

.garrula-bottom-right {
    bottom: 20px;
    right: 20px;
    position: fixed;
}

.garrula-neutral {
    background-color: #f8f9fa;
    border-left: 4px solid #95a5a6;
    color: #333;
}

.garrula-success {
    background-color: #2ecc71;
    border-left: 4px solid #27ae60;
    color: white;
}

.garrula-warning {
    background-color: #f39c12;
    border-left: 4px solid #e67e22;
    color: white;
}

.garrula-error {
    background-color: #e74c3c;
    border-left: 4px solid #c0392b;
    color: white;
}

.garrula-info {
    background-color: #3498db;
    border-left: 4px solid #2980b9;
    color: white;
}

.garrula-neutral .garrula-icon {
    color: #7f8c8d;
}

.garrula-neutral .garrula-close {
    color: #7f8c8d;
}

.garrula-neutral .garrula-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.garrula-modal.garrula-neutral {
    background: #f8f9fa;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.garrula-modal.garrula-neutral .garrula-modal-buttons {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.garrula-modal.garrula-neutral .garrula-modal-button-secondary {
    background-color: #95a5a6;
    color: white;
}

.garrula-modal.garrula-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.garrula-modal.garrula-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.garrula-modal.garrula-error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.garrula-modal.garrula-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

/* Botões de ação para modal neutral */
.garrula-modal.garrula-neutral .garrula-modal-button-primary {
    background-color: #3498db;
    color: white;
}

.garrula-modal.garrula-neutral .garrula-modal-button-secondary {
    background-color: #95a5a6;
    color: white;
}

.garrula-redirect-link {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.2);
    color: inherit;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.garrula-redirect-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.garrula-neutral .garrula-redirect-link {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.garrula-neutral .garrula-redirect-link:hover {
    background-color: rgba(52, 152, 219, 0.2);
}

@keyframes garrula-modal-pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.02); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.garrula-modal-pulse {
    animation: garrula-modal-pulse 0.3s ease;
}

@keyframes garrula-modal-shake {
    0%, 100% { transform: translate(-50%, -50%); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-51%, -50%); }
    20%, 40%, 60%, 80% { transform: translate(-49%, -50%); }
}

.garrula-modal-shake {
    animation: garrula-modal-shake 0.5s ease;
}

@media (max-width: 600px) {
    .garrula-alert:not(.garrula-modal) {
        left: 10px !important;
        right: 10px !important;
        max-width: calc(100% - 20px) !important;
        transform: none !important;
        padding: 14px 16px;
    }

    .garrula-alert.garrula-top-center,
    .garrula-alert.garrula-bottom-center {
        left: 10px !important;
        right: 10px !important;
        transform: translateY(0) !important;
    }

    .garrula-alert .garrula-content {
        margin: 0 12px;
    }

    .garrula-modal {
        left: 10px !important;
        right: 10px !important;
        max-width: calc(100% - 20px) !important;
        transform: translateY(-50%) scale(0.9) !important;
        padding: 20px;
    }

    .garrula-modal.garrula-show {
        transform: translateY(-50%) scale(1) !important;
    }

    .garrula-modal-fullscreen {
        width: 95%;
        max-width: 95%;
        max-height: 85%;
    }

    .garrula-modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .garrula-modal-button {
        width: 100%;
    }

    .garrula-redirect-link {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}