/* Main Application Styles */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --border-radius: 15px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--dark-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Real-time Notification Popup Styles */
.notification-container {
    position: fixed;
    top: 20px;
    left: -400px;
    z-index: 9999;
    width: 350px;
    max-width: 90vw;
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.notification-container.show {
    left: 20px;
}

.notification-container.hide {
    left: 100vw;
}

.notification-popup {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    backdrop-filter: blur(15px);
    border-left: 5px solid var(--primary-color);
    overflow: hidden;
    animation: slideInFromLeft 0.5s ease-out;
}

.notification-popup.info {
    border-left-color: var(--info-color);
}

.notification-popup.success {
    border-left-color: var(--secondary-color);
}

.notification-popup.warning {
    border-left-color: var(--warning-color);
}

.notification-popup.error {
    border-left-color: var(--danger-color);
}

.notification-header {
    padding: 15px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.notification-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark-color);
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--dark-color);
}

.notification-body {
    padding: 10px 20px 15px;
}

.notification-message {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.notification-time {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-align: right;
}

/* Notification Animations */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-popup.slide-out {
    animation: slideOutToRight 0.5s ease-in forwards;
}

/* Progress bar for auto-dismiss */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 20px;
    border: none;
}

.card-body {
    padding: 20px;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), #0891b2);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* Navigation 
.navbar {
    background: rgba(9, 45, 206, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
}*/

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    border-radius: 10px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(79, 70, 229, 0.1);
}

.nav-link.active {
    color: white !important;
    background: var(--primary-color);
    font-weight: 700;
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.alert-info {
    background: linear-gradient(135deg, #e0f2fe, #b3e5fc);
    color: #0c4a6e;
}

/* Badges */
.badge {
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Tables */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table th {
    background: var(--light-color);
    border: none;
    font-weight: 600;
    color: var(--dark-color);
    padding: 15px;
}

.table td {
    border: none;
    padding: 15px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(79, 70, 229, 0.05);
}

/* Pagination */
.pagination {
    justify-content: center;
}

.pagination .page-link {
    border-radius: 10px;
    margin: 0 3px;
    border: none;
    color: var(--primary-color);
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Modals */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border: none;
}

.modal-footer {
    border: none;
    padding: 20px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #6366f1) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--secondary-color), #059669) !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.rounded-lg {
    border-radius: var(--border-radius) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .nav-link {
        padding: 8px 12px !important;
        margin: 0 2px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 5px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .card-header,
    .card-body {
        padding: 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Landing Page Enhancements */
.hero-section {
    position: relative;
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(255,255,255,0.15), transparent 60%),
                radial-gradient(ellipse at bottom right, rgba(255,255,255,0.1), transparent 60%);
    pointer-events: none;
}
.section-title {
    font-weight: 800;
    background: linear-gradient(90deg, #4f46e5, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}
.shadow-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shadow-lift:hover { 
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
}
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.feature-card {
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    box-shadow: var(--box-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.step-card {
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    box-shadow: var(--box-shadow);
}
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.stat-card {
    background: rgba(255,255,255,0.96);
    border-radius: 16px;
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 10px;
}
.stat-label {
    color: #6b7280;
}
.cta-section {
    background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(16,185,129,0.08));
}

/* Floating Telegram Support Button */
.floating-support-btn {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088cc 0%, #2AABEE 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 136, 204, 0.35), 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1055;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
  border: none;
  cursor: grab;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* allow tap/click; drag handled by JS */
}
.floating-support-btn.dragging { cursor: grabbing; }
.floating-support-btn i { font-size: 1.5rem; line-height: 1; }
.floating-support-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 24px rgba(0, 136, 204, 0.45), 0 4px 10px rgba(0,0,0,0.12); }
.floating-support-btn:active { transform: translateY(0); }
.floating-support-btn.hidden { opacity: 0; pointer-events: none; }

.floating-support-btn.telegram {
  background: linear-gradient(135deg, #0088cc 0%, #2AABEE 100%);
  box-shadow: 0 10px 20px rgba(0, 136, 204, 0.35), 0 2px 6px rgba(0,0,0,0.1);
}

.floating-support-btn.whatsapp {
  bottom: 86px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 10px 20px rgba(18, 140, 126, 0.35), 0 2px 6px rgba(0,0,0,0.1);
}

@media (max-width: 576px) {
  .floating-support-btn { right: 14px; bottom: 18px; width: 52px; height: 52px; }
  .floating-support-btn.whatsapp { bottom: 82px; }
}
