/* Modern Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #4f46e5;
    --background-light: #f8fafc;
    --background-dark: #1e293b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.2s ease;
}

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

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    line-height: 1.5;
    background: var(--background-light);
}

.seo-content {
    padding: 2rem 0;
}

.features-grid {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.feature-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #6c757d;
    line-height: 1.6;
}

/* Intro.js custom styles */
.introjs-tooltip {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.introjs-helperLayer {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid #2c3e50;
}

.introjs-button {
    background: #ff6600;
    color: white;
    border: none;
    text-shadow: none;
    border-radius: 4px;
    padding: 6px 12px;
}

.introjs-button:hover {
    background: #e65c00;
    color: white;
}

/* Login Page Styles */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: #f9fafb;
    min-height: 100vh;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .brand-logo img {
    max-width: 180px;
}

.login-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-top: 1rem;
}

.login-header p {
    font-size: 1.25rem;
    color: #7f8c8d;
}

.login-content {
    background-color: #ffffff;
    padding: 2rem 3rem;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-content .form-group {
    margin-bottom: 1.5rem;
}

.login-content .form-control {
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #dcdfe3;
}

.login-content .form-control:focus {
    border-color: #a0b3c5;
    outline: none;
    box-shadow: none;
}

.login-content .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.login-content .btn-primary {
    background-color: #0069d9;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
}

.login-content .btn-primary:hover {
    background-color: #0053ba;
}

.login-content .forgot-password-link {
    font-size: 0.9rem;
    color: #0069d9;
    text-decoration: none;
}

.login-content .forgot-password-link:hover {
    text-decoration: underline;
}

.social-login {
    text-align: center;
    margin-top: 1rem;
}

.social-login p {
    margin-bottom: 1rem;
    color: #7f8c8d;
}

.btn-google {
    background-color: #db4437;
    color: #ffffff;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 1rem;
}

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

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.login-footer p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .login-content {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .login-header h1 {
        font-size: 2rem;
    }
    .login-content {
        padding: 1.5rem;
    }
}

/* Auth Layout Styles */
.auth-wrapper {
    min-height: calc(100vh - 140px);
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
}

.auth-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    transition: transform 0.2s;
}

.auth-card:hover {
    transform: translateY(-2px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #718096;
    font-size: 1rem;
}

.auth-form .form-floating {
    position: relative;
}

.auth-form .input-icon {
    position: relative;
}

.auth-form .input-icon i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    transition: color 0.2s;
}

.auth-form .form-control {
    height: 3.25rem;
    padding: 1rem 2.5rem 1rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-form .form-control:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.auth-form .form-control:focus + i {
    color: #4299e1;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: #718096;
    font-size: 0.875rem;
}

.social-auth .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 3.25rem;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s;
}

.social-auth .btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

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

.register-link {
    color: #4299e1;
    font-weight: 600;
    margin-left: 0.5rem;
    text-decoration: none;
}

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

.forgot-link {
    color: #4299e1;
    font-size: 0.875rem;
    text-decoration: none;
}

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

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem 0;
    }

    .auth-card {
        padding: 2rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-form .form-control {
        height: 3rem;
    }
}

/* AI Login Layout */
.ai-login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.ai-login-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ai-login-grid {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) 1fr;
    gap: 3rem;
    align-items: start;
}

/* AI Form Styling */
.ai-login-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    max-width: 440px;
    margin: 0 auto;
}

.brand-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

.ai-indicator {
    position: absolute;
    right: -10px;
    top: -10px;
    display: flex;
    align-items: center;
    background: rgba(52, 152, 219, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #3498db;
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse 2s infinite;
}

/* AI Enhanced Inputs */
.ai-enhanced .input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.ai-enhanced .form-control {
    height: 54px;
    padding: 0 1rem 0 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.ai-enhanced .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.3s ease;
}

.ai-enhanced .focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.ai-enhanced .form-control:focus ~ .focus-border {
    width: 100%;
}

/* AI Button Styling */
.btn-ai {
    position: relative;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    font-weight: 500;
    overflow: hidden;
}

.btn-ai::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: 0.5s;
}

.btn-ai:hover::before {
    left: 100%;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    gap: 1.5rem;
    grid-template-rows: repeat(auto-fit, minmax(180px, 1fr));
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #718096;
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .feature-cards {
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .ai-login-grid {
        grid-template-columns: 1fr;
    }

    .ai-features-preview {
        display: none;
    }
}

@media (max-width: 576px) {
    .ai-login-wrapper {
        padding: 1rem;
    }

    .ai-login-card {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Boxed Layout Styles */
.boxed-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.ai-login-content {
    background: white;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.ai-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.ai-login-form-section {
    max-width: 440px;
}

/* AI Form Card */
.ai-login-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
}

/* Feature Cards */
.ai-features-section {
    padding-top: 2rem;
}

.feature-cards {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.feature-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Form Elements */
.ai-enhanced .input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.ai-enhanced .form-control {
    width: 100%;
    height: 54px;
    padding: 0 1rem 0 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8fafc;
}

.btn-ai {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    margin-top: 1rem;
}

/* Enterprise Auth */
.enterprise-auth {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.btn-enterprise {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .ai-login-grid {
        grid-template-columns: 1fr;
    }

    .ai-login-form-section {
        max-width: 100%;
    }

    .ai-features-section {
        display: none;
    }

    .ai-login-content {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .boxed-container {
        padding: 0 1rem;
    }

    .ai-login-content {
        padding: 1.5rem;
    }

    .ai-login-card {
        padding: 1.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .boxed-container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .boxed-container {
        max-width: 720px;
    }

    .ai-login-grid {
        grid-template-columns: 1fr;
    }

    .ai-features-section {
        display: none;
    }
}

@media (max-width: 768px) {
    .boxed-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .ai-login-content {
        padding: 1rem;
    }

    .ai-login-card {
        padding: 1.5rem;
    }
}

/* Modern Header */
.title-bar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 2rem;
    width: auto;
}

/* Modern Toolbar */
.toolbar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tool-group {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border-right: 1px solid var(--border-color);
}
.tool-button:hover {
    background: var(--background-light);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Modern Dropdowns */
.dropdown-menu {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

/* Modern Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
}

.table th {
    background: var(--background-light);
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table tr:hover {
    background: var(--background-light);
}

/* Modern Forms */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 100%;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Modern Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Modern Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-light);
}

.card-body {
    padding: 1.25rem;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: var(--radius-sm);
}

/* Modern Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

/* Modern Responsive Design */
@media (max-width: 768px) {
    .toolbar {
        flex-direction: column;
    }

    .tool-group {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-menu {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 320px;
    }
}
