html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Enhanced Marketing Styles */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.feature-highlight h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    background: #007bff;
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(0deg);
    z-index: 10;
    border-radius: 3px;
}

.ribbon:before {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    height: 0;
    border-left: 5px solid #0056b3;
    border-bottom: 5px solid transparent;
}

.ribbon-primary {
    background: #007bff;
}

.bg-gradient {
    background: linear-gradient(135deg, #0056b3 0%, #4CAF50 100%);
}

.feature-icon {
    padding: 1rem;
    border-radius: 50%;
    background: rgba(0,123,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Ukraine-specific styling */
.ukraine-flag {
    background: linear-gradient(to bottom, #005BBB 50%, #FFD500 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-ukraine-blue {
    color: #005BBB;
}

.text-ukraine-yellow {
    color: #FFD500;
}

/* Enhanced card styling */
.card {
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
}

/* Demo Visualization Styles */
.demo-visualization {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    border: 2px solid #bbdefb;
}

.demo-step {
    position: relative;
    padding: 1rem;
}

.feature-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Pulse Ring Animations */
.pulse-ring {
    width: 80px;
    height: 80px;
    border: 3px solid #007bff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s infinite;
    opacity: 0;
}

.pulse-ring-yellow {
    width: 80px;
    height: 80px;
    border: 3px solid #ffc107;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s infinite 0.5s;
    opacity: 0;
}

.pulse-ring-green {
    width: 80px;
    height: 80px;
    border: 3px solid #28a745;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s infinite 1s;
    opacity: 0;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Visual placeholder styling */
.placeholder-image {
    position: relative;
    overflow: hidden;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Enhanced testimonial styling */
.testimonial-card {
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

.testimonial-card:hover {
    border-left-color: #28a745;
    transform: translateY(-3px);
}

/* Arrow animations */
@keyframes arrow-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(10px);
    }
    60% {
        transform: translateX(5px);
    }
}

.fa-arrow-right {
    animation: arrow-bounce 2s infinite;
}

/* Integration Styles */
.integration-showcase {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid #e9ecef;
}

.integration-box {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.integration-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lab-card {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    cursor: pointer;
}

.lab-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.lab-icon {
    transition: all 0.3s ease;
}

.lab-card:hover .lab-icon i {
    transform: scale(1.1);
}

/* List group enhancements */
.list-group-item {
    border: none;
    border-radius: 10px !important;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.list-group-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Brand styling in navbar */
.navbar-brand {
    text-decoration: none !important;
}

.navbar-brand:hover {
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Logo styling */
.navbar-brand img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Additional visual enhancements */
.bg-info.bg-opacity-10 {
    background-color: rgba(13, 202, 240, 0.1) !important;
    border: 1px solid rgba(13, 202, 240, 0.2);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .demo-visualization .col-md-1 {
        display: none;
    }
    
    .demo-visualization .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .fa-arrow-right {
        display: none;
    }
    
    .pulse-ring,
    .pulse-ring-yellow,
    .pulse-ring-green {
        width: 60px;
        height: 60px;
    }
    
    .integration-showcase .col-md-1 {
        display: none;
    }
    
    .integration-showcase .col-md-4,
    .integration-showcase .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .navbar-brand div {
        font-size: 0.9rem;
    }
    
    .navbar-brand small {
        font-size: 0.7rem;
    }
    
    .navbar-brand img {
        max-height: 32px;
    }
}

/* Custom Social Buttons */
.btn-google {
    background-color: #ffffff;
    color: #444;
    border: 1px solid #ddd;
}

.btn-google:hover {
    background-color: #f8f8f8;
    color: #333;
}

.btn-microsoft {
    background-color: #0078D4;
    color: #ffffff;
    border: 1px solid #0078D4;
}

.btn-microsoft:hover {
    background-color: #005a9e;
    color: #ffffff;
}

/* Modern Auth Page Styles */
.auth-container {
    max-width: 450px;
    margin: 2rem auto;
    padding: 1rem;
}

.auth-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.auth-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
    text-align: center;
}

.social-logins {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    flex-grow: 1;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #333;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.btn-social:hover {
    background-color: #f7f7f7;
}

.divider-container {
    display: flex;
    align-items: center;
    text-align: center;
    color: #adb5bd;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.divider-container::before,
.divider-container::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.divider-container:not(:empty)::before {
    margin-right: .5em;
}

.divider-container:not(:empty)::after {
    margin-left: .5em;
}

.form-group-modern {
    text-align: left;
    margin-bottom: 1.25rem;
}

.form-group-modern label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group-modern .form-control {
    background-color: #fff;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    height: auto;
}

.form-group-modern .form-control:focus {
    background-color: #fff;
    border-color: #86b7fe;
    box-shadow: none;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.btn-auth-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.auth-footer-link {
    margin-top: 2rem;
    text-align: center;
    color: #6c757d;
}

.auth-footer-link a {
    font-weight: 500;
    color: #0d6efd;
    text-decoration: none;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.border-left-primary {
    border-left: 4px solid #007bff !important;
}

.border-left-success {
    border-left: 4px solid #28a745 !important;
}

.border-left-info {
    border-left: 4px solid #17a2b8 !important;
}

.border-left-warning {
    border-left: 4px solid #ffc107 !important;
}

.border-left-danger {
    border-left: 4px solid #dc3545 !important;
}

.chart-area {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-area canvas {
    max-height: 300px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-good {
    background-color: #d4edda;
    color: #155724;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-critical {
    background-color: #f8d7da;
    color: #721c24;
}

.system-event {
    border-left: 3px solid #007bff;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.system-event.warning {
    border-left-color: #ffc107;
}

.system-event.danger {
    border-left-color: #dc3545;
}

.system-event.success {
    border-left-color: #28a745;
}

.memory-alert {
    border-left: 3px solid #dc3545;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.memory-alert.warning {
    border-left-color: #ffc107;
}

.memory-alert.danger {
    border-left-color: #dc3545;
}

.refresh-controls {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.performance-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #6c757d;
}

.performance-table td {
    vertical-align: middle;
}

.auto-refresh-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #28a745;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.auto-refresh-indicator.inactive {
    background-color: #6c757d;
    animation: none;
}

/* Responsive adjustments for dashboard */
@media (max-width: 768px) {
    .chart-area {
        height: 200px;
    }
    
    .metric-value {
        font-size: 1.2rem;
    }
    
    .performance-table {
        font-size: 0.9rem;
    }
    
    .refresh-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .refresh-controls .d-flex {
        justify-content: center;
    }
}

.notification-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,0,0, 0.7);
  animation: pulse 1.5s infinite;
  margin-left: 6px;
  vertical-align: middle;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,0,0, 0.7);}
  70% { box-shadow: 0 0 0 10px rgba(255,0,0, 0);}
  100% { box-shadow: 0 0 0 0 rgba(255,0,0, 0);}
}