:root {
    --primary: #f72585;
    --secondary: #7209b7;
    --dark: #3a0ca3;
    --info: #4361ee;
    --light: #4cc9f0;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%) !important;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-dark .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.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 800;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-section .btn-light {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-section .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

/* Dashboard Preview Styles */
.dashboard-preview {
    background: linear-gradient(135deg, #3a0ca3 0%, #7209b7 100%);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    min-height: 300px;
}

.dashboard-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #f72585;
    border-radius: 10px 10px 0 0;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.chart-bar {
    background: rgba(255,255,255,0.9);
    border-radius: 5px;
    padding: 1rem;
    display: flex;
    align-items: end;
    gap: 0.5rem;
    height: 120px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, #4361ee, #4cc9f0);
    border-radius: 3px 3px 0 0;
    min-height: 20px;
}

.chart-pie {
    background: rgba(255,255,255,0.9);
    border-radius: 5px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    position: relative;
}

.pie-chart {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#f72585 0% 40%, #4cc9f0 40% 70%, #4361ee 70% 100%);
}

.stats-panel {
    grid-column: 1 / -1;
    background: rgba(255,255,255,0.9);
    border-radius: 5px;
    padding: 1rem;
    margin-top: 1rem;
}

.stat-line {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #f72585, #7209b7);
    border-radius: 5px;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e11575;
    border-color: #e11575;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-info {
    background-color: var(--info);
    border-color: var(--info);
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: var(--dark-text);
}

/* Text Colors */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-info {
    color: var(--info) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: var(--white);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Service Icons */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

/* Pricing Cards */
.pricing-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.pricing-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 2rem 1.5rem;
    text-align: center;
}

.pricing-header.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #e115
	    background: linear-gradient(135deg, var(--primary) 0%, #e11575 100%) !important;
}

.pricing-body {
    padding: 2.5rem;
    text-align: center;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
}

/* Steps */
.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: 10px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card-header {
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Tables */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table th {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #e9ecef;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(76, 201, 240, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(247, 37, 133, 0.05);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #e11575 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.bg-info {
    background: linear-gradient(135deg, var(--info) 0%, var(--light) 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffd54f 100%) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%) !important;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
}

.service-card {
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(247, 37, 133, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
}

/* Alert Styles */
.alert-primary {
    background-color: rgba(247, 37, 133, 0.1);
    border-color: var(--primary);
    color: var(--dark);
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 10px;
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Modal Styles */
.modal-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    color: var(--white);
    border-bottom: none;
}

.modal-footer .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Tooltip Styles */
.tooltip-inner {
    background-color: var(--dark);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--dark);
}

/* Pagination Styles */
.page-link {
    color: var(--dark);
    border-color: #dee2e6;
}

.page-link:hover {
    color: var(--primary);
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(247, 37, 133, 0.1);
    color: var(--primary);
}

/* Admin Specific Styles */
.container-fluid {
    padding: 0 15px;
}

/* Stats Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning {
    border: none;
    color: var(--white);
}

.card.bg-primary .card-title,
.card.bg-success .card-title,
.card.bg-info .card-title,
.card.bg-warning .card-title {
    color: var(--white);
    opacity: 0.9;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .chart-bar,
    .chart-pie {
        height: 100px;
    }
    
    .pie-chart {
        width: 60px;
        height: 60px;
    }
    
    .dashboard-preview {
        padding: 1rem;
        min-height: 250px;
    }
}

/* Additional Utility Classes */
.text-shadow {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.box-shadow {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.box-shadow-lg {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section .btn,
    footer {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}

/* Enhanced Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Result Styles */
.success-result {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    color: #155724;
}

.not-found-result {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    color: #856404;
}

.rank-position {
    font-size: 2.5em;
    font-weight: bold;
    color: #28a745;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.result-details {
    background: rgba(255,255,255,0.7);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.suggestion {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 5px;
    font-style: italic;
}

/* Enhanced History Items */
.history-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.history-content {
    flex-grow: 1;
}

.history-url {
    display: block;
    color: #6c757d;
    font-size: 0.9em;
    margin: 4px 0;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #6c757d;
}

.rank-found {
    color: #28a745;
    font-weight: bold;
}

.rank-not-found {
    color: #dc3545;
    font-weight: bold;
}

.retry-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.retry-btn:hover {
    background-color: #e9ecef;
}

.history-item.empty {
    justify-content: center;
    color: #6c757d;
    font-style: italic;
}