:root {
    --primary-color: #C0501E;
    --primary-dark: #3a5a8c;
    --secondary-color: #5A574F;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #1A1814;
    --border-color: #E2DDD7;
    --gray-100: #F7F6F3;
    --border-radius: 4px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: var(--dark-color);
    background-color: white;
}

.container {
    /* max-width: 1200px;
    margin: 0 auto;
    padding: 20px; */
    margin: 20px 0 40px 0;
    justify-items: center;
    background-color: white;
}



.wizard-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    width: 70%;
    margin-bottom: 30px;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #f8f9fa;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step.active .step-number,
.step.completed .step-number {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.step.active .step-text,
.step.completed .step-text {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed:not(:last-child)::after {
    background-color: var(--primary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 10px;
    z-index: 2;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.step-text {
    font-size: 14px;
    color: var(--secondary-color);
    text-align: center;
    transition: var(--transition);
}

/* Wizard Content */
.wizard-content {
    padding: 30px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: flex;
}



.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 15px;
}



.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px #c0501e1f;
}


.form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}





.status-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    background-color: rgba(74, 111, 165, 0.1);
}

.results-table-container {
    overflow-x: auto;
}


.action-btn {
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: var(--primary-dark);
}

/* Backlink Opportunities */
.backlink-opportunities {
    margin-top: 20px;
    line-height: 1.8;
}

.backlink-opportunities a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.backlink-opportunities a:hover {
    text-decoration: underline;
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#loadingOverlay p{
    color: white;
    font-size: 16px;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loadingMessage {
    color: white;
    font-size: 16px;
}

.hidden {
    display: none !important;
}



/* Tools Hub Styles */
.tools-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.tools-container h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tools-description {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.tool-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.tool-card.coming-soon {
    background-color: #f8f9fa;
    opacity: 0.8;
}

.tool-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.tool-icon i {
    font-size: 30px;
}

.tool-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.tool-card p {
    color: var(--secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.tool-btn:hover {
    background-color: var(--primary-dark);
}

.coming-soon-badge {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
}

/* Back link styles */
.back-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link i {
    margin-right: 5px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Coming Soon Message */
.coming-soon-message {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.coming-soon-message i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.coming-soon-message h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.coming-soon-message p {
    color: var(--secondary-color);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.new-badge {
    background-color: #2563eb;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 5px;
    text-transform: uppercase;
}

/* Tool Header Styles */
.tool-header {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.tool-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tool-header p {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.hero-section {
    padding: 20px;
}

.form-group input,
.form-group textarea {
    max-width: 556px;
    width: 100%;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    vertical-align: bottom;
    background-color: var(--gray-100);
}

.form-group textarea {
    max-width: 100%;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--secondary-color);
    font-size: 14px;
}

.stat-box {
    text-align: center;
    padding: 24px 16px ;
    background-color: #fff;
    border-radius: 12px;
    min-width: 150px;
    flex: 1;
}

.stat-box i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-box span {
    display: block;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-box label {
    color: var(--secondary-color);
}

.results-content {
    margin-bottom: 25px;
}


.content-preview {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.content-preview pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
}

.table-header {
    display: flex;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.table-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.table-row:last-child {
    border-bottom: none;
}

.table-header .col,
.table-row .col {
    padding: 12px 15px;
    flex: 1;
}

.table-header .col:first-child,
.table-row .col:first-child {
    flex: 0.4;
    border-right: 1px solid var(--border-color);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-container {
    background-color: #ffebee;
    border-left: 4px solid var(--danger-color);
    padding: 15px;
    margin-block: 20px;
    display: flex;
    align-items: center;
    border-radius: var(--border-radius);
}

.error-container i {
    color: var(--danger-color);
    font-size: 24px;
    margin-right: 15px;
}

.error-container p {
    flex: 1;
    margin: 0;
}

.error-container button {
    margin-left: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .stat-box {
        margin-bottom: 15px;
    }

    .table-header,
    .table-row {
        flex-direction: column;
    }

    .table-header .col,
    .table-row .col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .table-row .col:last-child {
        border-bottom: none;
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }

    .main-nav ul {
        justify-content: center;
    }


}

@media (max-width: 768px) {
    .header-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.chip-pillar,
.chip-cluster {
    display: inline-block;
    border-radius: 16px;
    padding: 2px 10px;
    margin-left: 8px;
    font-size: 0.8em;
    font-weight: 600;
}

.chip-pillar {
    background: #e1f5fe;
    color: #0288d1;
}

.chip-cluster {
    background: #e8f5e9;
    color: #2e7d32;
}

.results-stats {
    display: flex;
    gap: 24px;
}
