/* Avatar in navbar */
.navbar .dropdown-toggle .rounded-circle {
    object-fit: cover;
    border: 2px solid white;
}

/* Hover effect for navbar links */
.navbar-nav .nav-link {
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffd700 !important;
        border-radius: 10px;
    }

.navbar-nav .dropdown-toggle span {
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Transaction Key Display */
.transaction-key-display {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 3px dashed #0d6efd;
    letter-spacing: 3px;
    color: #0d6efd;
    text-align: center;
    margin: 15px 0;
}

/* Step Numbers */
.step-number {
    width: 60px;
    height: 60px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Segoe UI', sans-serif;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

.card-header {
    border-radius: 15px 15px 0 0 !important;
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Progress bars */
.progress {
    border-radius: 50px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 50px;
    background: linear-gradient(45deg, #0d6efd, #198754);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #dee2e6;
    }

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #dee2e6;
}

.timeline-content h6 {
    margin: 0 0 5px 0;
    color: #495057;
}

.timeline-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

    footer a:hover {
        color: #ffffff !important;
    }

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-weight: 500;
    color: #333;
}

    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    }

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Alerts */
.alert {
    border-radius: 15px;
    border: none;
    padding: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #d1eddd, #c3e6cb);
    color: #155724;
}

.alert-info {
    background: linear-gradient(135deg, #cce7f0, #bee5eb);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* Badges */
.badge {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 15px;
}

/* Loading animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .transaction-key-display {
        font-size: 1.2rem;
        letter-spacing: 2px;
        padding: 15px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .card-body {
        padding: 20px;
    }
}

/* Utilities */
.text-gradient {
    background: linear-gradient(45deg, #0d6efd, #198754);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #0a58ca;
    }

/* Font smoothing & anti-aliasing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 500;
    color: #212529;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
