:root {
    --bg-primary: #fbf9f2;
    --bg-primary-container: #2c2e3a;
    --bg-secondary: #131515;
    --text-primary: #c7cbc5;
    --text-secondary: #969a94;
    --text-light: #f4ffeb;
    --accent-primary: #c80418;
    --accent-secondary: #ff6b6b;

    /* System Colors */
    --success: #09c936;
    --error: #dc3545;
    --warning: #ffc107;

    /* UI Elements */
    --border: rgba(156, 155, 155, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #4d4d4d;
    --bg-secondary: #131515;
    --text-primary: #c7cbc5;
    --text-secondary: #969a94;
    --text-light: #f0f3f4;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}
.card {
    background-color: #ffffff13;
}
.card-header{
    background-color:#ffffff4f !important;
}
.card-body {
    flex: 1 1 auto;
    padding: .2rem 1rem;
}
.theme-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--accent-primary);
    transition: var(--transition);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    min-width: 80px;
    justify-content: center;
}

[data-theme="dark"] .theme-btn {
    background: rgba(0, 0, 0, 0.8);
}

.theme-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.theme-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.theme-icon {
    font-size: 14px;
    transition: var(--transition);
    opacity: 0.5;
}

.theme-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Installation Container - Fixed Size */
.installation-container {
    min-height: 100vh;
    max-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.installation-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 1200px;
    width: 100%;
    height: calc(100vh - 40px);
    max-height: 800px;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .installation-wrapper {
    background: rgba(29, 29, 29, 0.95);
}

/* Sidebar */
.installation-sidebar {
    background: var(--bg-secondary);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}

.installation-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: var(--border);
}

.sidebar-header {
    margin-bottom: 40px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    color: var(--accent-primary);
    font-size: 28px;
}

.sidebar-steps {
    flex: 1;
    overflow-y: auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    transition: var(--transition);
}

.step-item.active .step-number {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 20px rgba(200, 4, 24, 0.3);
}

.step-item.completed .step-number {
    background: var(--bg-primary-container);
    color: white;
}

.step-content h4 {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.step-item.active .step-content h4 {
    color: var(--accent-primary);
}

.sidebar-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.progress-info span {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Main Content - Scrollable */
.installation-main {
    padding: 40px 10px 0px 10px;
    background-color: var(--bg-primary-container);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--border);
    flex-shrink: 0;
}

.header-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.header-content p {
    color: var(--text-primary);
    font-size: 16px;
}

.header-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    overflow-y: auto;
}

.content-card {
    padding: 0 20px ;
    height: 100%;
}

.main-footer {
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    padding: 15px 20px;
}

.footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.footer-actions:has(> div:nth-child(2)) {
    justify-content: space-between;
}


/* Alerts */
.alert-two {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: none;
    transition: var(--transition);
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.alert-content p {
    margin: 0;
}

.alert-content ul {
    margin: 10px 0 0 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--error);
    border-left: 4px solid var(--error);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

/* Form Elements */
.form-control {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 14px;
    width: 100%;
}
.form-select{
    appearance: none;
    border: 2px solid var(--border);
    color: var(--text-primary);
   background: var(--bg-secondary) !important; 
}
.form-control:focus,.form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.2rem rgba(200, 4, 24, 0.25);
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
}
.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 4, 24, 0.3);
    color: white;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Feature Cards for Welcome Page */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(200, 4, 24, 0.1);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Welcome Page Specific Styles */
.welcome-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), var(--bg-primary));
    border-radius: 20px;
    border: 1px solid var(--border);
}

[data-theme="dark"] .welcome-hero {
    background: linear-gradient(135deg, rgba(29, 29, 29, 0.8), var(--bg-primary));
}

.hero-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Installation Cards */
.install-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 15px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.install-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.install-card-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), var(--bg-primary));
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .install-card-header {
    background: linear-gradient(135deg, rgba(29, 29, 29, 0.8), var(--bg-primary));
}

.install-card-header h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.install-card-header i {
    color: var(--accent-primary);
}

.install-card-body {
    padding: 25px;
}

/* System Requirements Styles */
.requirement-grid {
    display: grid;
    gap: 15px;
}

.requirement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.requirement-item:last-child {
    border-bottom: none;
}

.requirement-item:hover {
    background: rgba(200, 4, 24, 0.02);
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 8px;
}

.requirement-info strong {
    color: var(--text-light);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.requirement-info .text-muted {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Enhanced Status Badges */
.status-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.status-badge:hover::before {
    left: 100%;
}

.status-pass {
    background: linear-gradient(135deg, rgba(201, 235, 209, 0.2), rgba(112, 120, 114, 0.5));
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-fail {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(241, 176, 183, 0.5));
    color: var(--error);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .installation-container {
        padding: 10px;
    }

    .installation-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: calc(100vh - 20px);
        max-height: none;
    }

    .installation-sidebar {
        padding: 20px;
        height: auto;
        max-height: none;
    }

    .sidebar-steps {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: visible;
        padding: 10px 0;
    }

    .sidebar-footer {
        display: none;
    }

    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 80px;
        border-bottom: none;
        border-right: 1px solid var(--border);
        padding: 10px;
        margin: 0;
    }

    .step-item:last-child {
        border-right: none;
    }

    .step-content {
        display: none;
    }

    .step-number {
        margin-bottom: 5px;
    }

    .installation-main {
        padding: 0;
        overflow-y: auto;
    }

    .main-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-content h1 {
        font-size: 24px;
    }

    .content-card {
        padding: 20px;
    }

    .footer-actions {
        flex-direction: column;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--border);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0031a;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@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(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Additional Utility Classes */
.mysql-fields {
    transition: var(--transition);
}

.form-group {
    margin-bottom: 20px;
}

.database-info {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}

[data-theme="dark"] .database-info {
    background: rgba(29, 29, 29, 0.5);
}

.database-info code {
    background: rgba(200, 4, 24, 0.1);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Connection Test Styles */
.connection-test {
    background: var(--bg-primary);
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    transition: var(--transition);
}

.connection-test:hover {
    border-color: var(--accent-primary);
    background: rgba(200, 4, 24, 0.02);
}

.connection-test i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

/* Action Buttons Layout */
.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.action-buttons .btn-group {
    display: flex;
    gap: 12px;
}

/* Time Estimate */
.time-estimate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 20px;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.time-estimate i {
    color: var(--accent-primary);
}

@media (max-width: 576px) {
    .sidebar-steps {
        gap: 5px;
        padding: 0;
    }

    .step-item {
        min-width: 50px;
        padding: 0;
    }

    .header-icon {
        display: none;
    }

    .installation-sidebar {
        padding: 0 11px;
    }

    .installation-wrapper {
        border-radius: 0;
    }

    .installation-container {
        padding: 0px 0px;
    }
}