/**
 * YourWay Modern Enhancements Styles
 * Modern UI enhancements and improvements
 */

/* Tooltip styles */
.yw-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    max-width: 200px;
    text-align: center;
}

.yw-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

/* Loading button states */
.btn-loading.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: yw-spin 1s linear infinite;
}

@keyframes yw-spin {
    to { transform: rotate(360deg); }
}

/* Toast notifications */
#yw-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.yw-notification {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #007cba;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    max-width: 350px;
}

.yw-notification-success {
    border-left-color: #28a745;
}

.yw-notification-error {
    border-left-color: #dc3545;
}

.yw-notification-warning {
    border-left-color: #ffc107;
}

.yw-notification-message {
    flex: 1;
    margin-right: 10px;
}

.yw-notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 20px;
    height: 20px;
}

.yw-notification-close:hover {
    color: #495057;
}

/* Progress bars */
.yw-progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.yw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #0073aa);
    width: 0%;
    transition: width 0.3s ease;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: 'Loading...';
    display: block;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin-top: 10px;
}

/* Smooth transitions */
.yourway-modern-container * {
    transition: all 0.2s ease-in-out;
}

/* Modern button styles */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}
