/* Buffer Dialog Styles */
.buffer-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.dialog-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    min-width: 400px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0dbd5;
    background: #f9fafb;
}

.dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1b1b1e;
}

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

.dialog-close:hover {
    background: #faf8f5;
    color: #3a3a3d;
}

.dialog-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #3a3a3d;
    font-size: 14px;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gt-green, #2d6a4f);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
}

.feature-info {
    background: #faf8f5;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #6b7280;
    margin-top: 16px;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e0dbd5;
    background: #f9fafb;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background: #faf8f5;
    color: #3a3a3d;
}

.btn-secondary:hover {
    background: #e0dbd5;
}

.btn-primary {
    background: var(--gt-green, #2d6a4f);
    color: white;
}

.btn-primary:hover {
    background: var(--gt-green-muted, #40916c);
}

.btn-primary:active {
    background: #4338ca;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    max-width: 400px;
    box-shadow: var(--gt-shadow, 0 1px 3px rgba(0,0,0,0.15));
    display: none;
    animation: slideIn 0.3s ease-out;
}

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

.notification.info {
    background: rgba(69,123,157,0.12);
    color: #2d6a4f;
    border: 1px solid rgba(69,123,157,0.3);
}

.notification.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.notification.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.notification.error {
    background: #fecaca;
    color: #dc2626;
    border: 1px solid #f87171;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dialog-content {
        background: #2a2a2d;
        color: #faf8f5;
    }
    
    .dialog-header {
        background: #1b1b1e;
        border-bottom-color: #3a3a3d;
    }
    
    .dialog-header h3 {
        color: #faf8f5;
    }
    
    .dialog-close {
        color: #9a9790;
    }
    
    .dialog-close:hover {
        background: #3a3a3d;
        color: #faf8f5;
    }
    
    .form-group label {
        color: #faf8f5;
    }
    
    .form-group input[type="number"],
    .form-group select {
        background: #3a3a3d;
        border-color: #4b5563;
        color: #faf8f5;
    }
    
    .form-group input[type="number"]:focus,
    .form-group select:focus {
        border-color: var(--gt-green, #2d6a4f);
        box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
    }
    
    .feature-info {
        background: #1b1b1e;
        color: #9a9790;
    }
    
    .dialog-footer {
        background: #1b1b1e;
        border-top-color: #3a3a3d;
    }
    
    .btn-secondary {
        background: #3a3a3d;
        color: #faf8f5;
    }
    
    .btn-secondary:hover {
        background: #4b5563;
    }
}

/* Responsive design */
@media (max-width: 600px) {
    .dialog-content {
        min-width: 300px;
        width: 95%;
    }
    
    .dialog-header,
    .dialog-body,
    .dialog-footer {
        padding: 16px;
    }
    
    .dialog-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Animation for dialog */
.buffer-dialog {
    animation: dialogFadeIn 0.3s ease-out;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dialog-content {
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

