/* Modern Glass Design for Website Map Generator */

:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --info-color: #0ea5e9;
    --neutral-gray: #6b7280;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.25);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #64748b 0%, #475569 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #047857 100%);
    --gradient-info: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --gradient-neutral: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1e293b 0%, #334155 25%, #475569 50%, #334155 75%, #1e293b 100%);
    background-attachment: fixed;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: white;
    overflow-x: hidden;
}

/* Glass Effect Base */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px 0 rgba(31, 38, 135, 0.5);
}

/* Smooth progress bar animations */
.progress-bar {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

/* Glow effect for progress bar during updates */
.progress-bar.updating {
    animation: progressGlow 0.8s ease-out;
}

@keyframes progressGlow {
    0% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.6), 0 0 25px rgba(59, 130, 246, 0.3);
    }
    100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
}

/* Smooth number counting animation */
.url-count, .progress-text {
    transition: all 0.2s ease-out;
}

/* Pulse animation for updating numbers */
.url-count.updating, .progress-text.updating {
    animation: pulseUpdate 0.6s ease-out;
}

@keyframes pulseUpdate {
    0% {
        transform: scale(1);
        color: var(--primary-light);
    }
    50% {
        transform: scale(1.05);
        color: var(--accent-color);
    }
    100% {
        transform: scale(1);
        color: inherit;
    }
}

/* Highlight animation for real-time updates */
.project-card.updated {
    animation: highlightUpdate 1s ease-out;
}

@keyframes highlightUpdate {
    0% {
        background-color: rgba(59, 130, 246, 0.1);
        box-shadow: 0 8px 32px 0 rgba(59, 130, 246, 0.2);
    }
    100% {
        background-color: transparent;
        box-shadow: var(--glass-shadow);
    }
}

/* Navbar with Glass Effect */
.navbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.navbar-text {
    color: white !important;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    margin-right: 1rem;
}

/* Mobile Navbar Toggle */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

/* Container Improvements */
.container {
    max-width: 1200px;
    padding: 0 1rem;
}

/* Cards with Glass Effect */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    color: white;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px 0 rgba(31, 38, 135, 0.5);
}

.card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    font-weight: 600;
    color: white;
}

.card-body {
    padding: 1.5rem;
    color: white;
}

/* Project Cards */
.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    color: white;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px 0 rgba(31, 38, 135, 0.6);
}

.project-card h5,
.project-card p,
.project-card small {
    color: white;
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(108, 117, 125, 0.3);
    color: #6c757d;
}

.status-crawling {
    background: rgba(13, 202, 240, 0.3);
    color: #0dcaf0;
    animation: pulse 2s infinite;
}

.status-completed {
    background: rgba(25, 135, 84, 0.3);
    color: #198754;
}

.status-error {
    background: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* Buttons with Glass Effect */
.btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-transform: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-outline-primary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.6);
    color: white;
}

.btn-outline-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: white;
    font-weight: 600;
}

.btn-outline-success:hover {
    background: var(--gradient-success);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-outline-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: white;
    font-weight: 600;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.6);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 16px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    min-width: 80px;
}

/* Forms with Glass Effect */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-label {
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
    z-index: -1;
}

.stat-card.success::before {
    background: var(--gradient-success);
}

.stat-card.warning::before {
    background: var(--gradient-secondary);
}

.stat-card.info::before {
    background: var(--gradient-info);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px 0 rgba(31, 38, 135, 0.5);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-label {
    font-size: 1rem;
    color: white;
    font-weight: 500;
}

/* Modals with Glass Effect */
.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
}

/* Alerts with Glass Effect */
.alert {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.alert-success {
    border-left: 4px solid var(--success-color);
    background: rgba(16, 185, 129, 0.2);
    color: white;
}

.alert-danger {
    border-left: 4px solid var(--danger-color);
    background: rgba(239, 68, 68, 0.2);
    color: white;
}

.alert-warning {
    border-left: 4px solid var(--warning-color);
    background: rgba(245, 158, 11, 0.2);
    color: white;
}

.alert-info {
    border-left: 4px solid var(--info-color);
    background: rgba(59, 130, 246, 0.2);
    color: white;
}

/* Progress Bars */
.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

/* Tables */
.table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.table th {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 1rem;
    font-weight: 600;
    color: white;
}

.table td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
    color: white;
}

/* URL List */
.url-list {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.url-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.url-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.url-item:last-child {
    border-bottom: none;
}

.url-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.url-status.success {
    background-color: var(--success-color);
}

.url-status.error {
    background-color: var(--danger-color);
}

.url-status.warning {
    background-color: var(--warning-color);
}

.url-info {
    flex: 1;
    min-width: 0;
}

.url-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.url-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    word-break: break-all;
}

.url-link:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading States */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
    color: white;
}

/* Polling Indicator */
.polling-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    z-index: 1070;
    animation: pulse 2s infinite;
    display: none;
    box-shadow: var(--glass-shadow);
}

.polling-indicator.active {
    display: block;
}

/* Toast Notifications - Always above modals */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1080;
}

.toast {
    min-width: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    color: white;
}

.toast-success {
    border-left: 4px solid var(--success-color);
    background: rgba(16, 185, 129, 0.2);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
    background: rgba(239, 68, 68, 0.2);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
    background: rgba(245, 158, 11, 0.2);
}

.toast-info {
    border-left: 4px solid var(--info-color);
    background: rgba(59, 130, 246, 0.2);
}

/* Ensure toasts stay above modals when modal is open */
.modal-open .toast-container {
    z-index: 1080 !important;
}

.modal-open .toast {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glass-shadow);
}

/* Breadcrumbs */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.5rem 1rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .card-header h4 {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    /* Mobile toast positioning - centered and above modals */
    .toast-container {
        top: 80px; /* Below navbar on mobile */
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: calc(100% - 2rem);
        max-width: 400px;
        z-index: 1080;
    }
    
    .toast {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    /* Adjust polling indicator for mobile */
    .polling-indicator {
        top: 80px;
        right: 10px;
        left: auto;
        transform: none;
        z-index: 1070;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .project-card {
        padding: 0.75rem;
    }
    
    .url-item {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .url-info {
        width: 100%;
    }
    
    .modal-content {
        margin: 0.5rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* Enhanced mobile toast positioning for small screens */
    .toast-container {
        top: 70px;
        left: 1rem;
        right: 1rem;
        transform: none;
        width: auto;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Compact polling indicator for small screens */
    .polling-indicator {
        top: 70px;
        right: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(30, 41, 59, 0.3);
        --glass-border: rgba(255, 255, 255, 0.1);
        --dark-color: #f1f5f9;
    }
    
    .form-control {
        color: #f1f5f9;
    }
    
    .form-control::placeholder {
        color: rgba(241, 245, 249, 0.6);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid var(--primary-color);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Bootstrap text color overrides for better glass effect readability */
.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-dark {
    color: white !important;
}

.text-secondary {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Enhanced icon visibility - all icons white for better readability */
.text-white .bi,
.text-white i {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Ensure check icons are clearly visible */
.bi-check-circle-fill {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Large display icons get extra visibility */
.display-4 i,
.display-6 i {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Disabled button states */
.btn:disabled,
.btn.disabled {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-outline-primary:disabled,
.btn-outline-success:disabled,
.btn-outline-danger:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

/* Focus management for accessibility */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation; /* Removes 300ms tap delay */
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    .url-item {
        min-height: 56px;
    }
    
    /* Better touch feedback for buttons */
    .btn:active {
        transform: scale(0.98);
    }
    
    .nav-link:active {
        transform: scale(0.98);
    }
    
    /* Mobile-specific icon container adjustments */
    .icon-container {
        width: 55px;
        height: 55px;
        margin-bottom: 0.75rem;
    }
    
    .icon-container .display-4 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-6 {
        font-size: 2rem;
    }
    
    /* Ensure colored icons are visible on mobile */
    .text-primary,
    .text-success,
    .text-warning,
    .text-info,
    .text-danger {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
        filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
    }
}
/* Enhanced Bootstrap color utility classes for glass background readability */
.text-primary {
    color: #2563eb !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.text-success {
    color: #059669 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.text-warning {
    color: #d97706 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.text-info {
    color: #0891b2 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.text-danger {
    color: #dc2626 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Enhanced icon containers with subtle colored backgrounds */
.bg-primary.bg-opacity-25 {
    background: rgba(37, 99, 235, 0.25) !important;
    backdrop-filter: blur(5px);
}

.bg-success.bg-opacity-25 {
    background: rgba(5, 150, 105, 0.25) !important;
    backdrop-filter: blur(5px);
}

.bg-info.bg-opacity-25 {
    background: rgba(8, 145, 178, 0.25) !important;
    backdrop-filter: blur(5px);
}

.bg-warning.bg-opacity-25 {
    background: rgba(217, 119, 6, 0.25) !important;
    backdrop-filter: blur(5px);
}

/* Display icons with enhanced visibility */
.display-4 .text-primary,
.display-4 .text-success,
.display-4 .text-warning,
.display-4 .text-info,
.display-6 .text-primary,
.display-6 .text-success,
.display-6 .text-warning,
.display-6 .text-info {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Enhanced Bootstrap color class combinations */
.text-primary.bg-primary.bg-opacity-25,
.text-success.bg-success.bg-opacity-25,
.text-warning.bg-warning.bg-opacity-25,
.text-info.bg-info.bg-opacity-25 {
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Improved check icons visibility */
.bi-check-circle-fill.text-success {
    color: #059669 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Icon containers for feature cards */
.icon-container {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Large icon containers for display-4 */
.icon-container .display-4 {
    font-size: 2.5rem;
}

.icon-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Tablet optimizations */
@media (max-width: 992px) {
    .icon-container {
        width: 55px;
        height: 55px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .display-6 {
        font-size: 2.25rem;
    }
    
    .icon-container .display-4 {
        font-size: 2.5rem;
    }
    
    /* Enhance color contrast for tablets */
    .bg-primary.bg-opacity-25,
    .bg-success.bg-opacity-25,
    .bg-info.bg-opacity-25,
    .bg-warning.bg-opacity-25 {
        backdrop-filter: blur(8px);
    }
}

/* Small mobile enhancements */
@media (max-width: 576px) {
    .icon-container {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .icon-container .display-4 {
        font-size: 1.75rem;
    }
    
    /* Larger touch targets for icons */
    .display-4,
    .display-6 {
        padding: 0.25rem;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure colored backgrounds are visible */
    .bg-primary.bg-opacity-25 {
       background: rgba(37, 99, 235, 0.3) !important;
    }
    
    .bg-success.bg-opacity-25 {
        background: rgba(5, 150, 105, 0.3) !important;
    }
    
    .bg-info.bg-opacity-25 {
        background: rgba(8, 145, 178, 0.3) !important;
    }
    
    .bg-warning.bg-opacity-25 {
        background: rgba(217, 119, 6, 0.3) !important;
    }
}

/* Disabled button styling for better UX */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-group .btn:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}