/* KSeFty - Main Styles */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #334155;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary);
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    color: #64748b;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.navbar .btn .bi {
    vertical-align: -.125em;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lead {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
}

.hero-image {
    max-width: 100%;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Stats */
.stats {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.3s;
    background: white;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-icon.blue {
    background: #dbeafe;
    color: var(--primary);
}

.feature-icon.green {
    background: #d1fae5;
    color: var(--success);
}

.feature-icon.cyan {
    background: #cffafe;
    color: var(--accent);
}

.feature-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.feature-icon.orange {
    background: #ffedd5;
    color: #ea580c;
}

.feature-icon.pink {
    background: #fce7f3;
    color: #db2777;
}

.feature-card h4 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #64748b;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--light-bg);
}

.pricing-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    height: 100%;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.pricing-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    margin-bottom: 1.5rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
}

.pricing-period {
    color: #64748b;
    font-size: 0.875rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--success);
    font-size: 1rem;
}

.pricing-features li.disabled {
    color: #94a3b8;
}

.pricing-features li.disabled i {
    color: #cbd5e1;
}

/* Integration Section */
.integrations {
    padding: 6rem 0;
    background: white;
}

.integration-logo {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.integration-logo:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px -10px rgba(37, 99, 235, 0.15);
}

.integration-logo i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.integration-logo span {
    font-weight: 600;
    color: var(--secondary);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta p {
    color: #94a3b8;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

.cta .btn-primary:hover {
    background: #f1f5f9;
    border-color: #f1f5f9;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: var(--light-bg);
}

.accordion-button {
    font-weight: 600;
    color: var(--secondary);
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: #f1f5f9;
    color: var(--primary);
}

.accordion-body {
    color: #64748b;
    padding: 1.5rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: var(--secondary);
    color: #94a3b8;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    text-align: center;
}

/* KSeF Section */
.ksef-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, white 0%, var(--light-bg) 100%);
}

.ksef-feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.ksef-feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.15);
    transform: translateY(-3px);
}

.ksef-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.ksef-feature-card h5 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.ksef-feature-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.ksef-timeline {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 1rem;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.timeline-item {
    text-align: center;
    flex: 1;
    position: relative;
    padding: 0 0.5rem;
}

.timeline-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.timeline-content h6 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.ksef-detail-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    height: 100%;
}

.ksef-detail-card h5 {
    font-weight: 700;
    color: var(--secondary);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.ksef-detail-card li {
    color: #475569;
    font-size: 0.95rem;
}

.ksef-cta {
    background: linear-gradient(135deg, #dbeafe 0%, #cffafe 100%);
    border-radius: 1.5rem;
    padding: 3rem;
}

.ksef-cta h4 {
    font-weight: 700;
    color: var(--secondary);
}

/* Page Header */
.page-header {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    margin-top: 76px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.page-header .lead {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Page Content */
.page-content {
    padding: 4rem 0;
}

.page-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.page-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.page-content p {
    color: #475569;
    line-height: 1.7;
}

/* Cards */
.info-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.15);
}

.info-card h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 575px) {
    .info-card {
        padding: 1rem;
    }

    .info-card h5 {
        font-size: 0.95rem;
    }

    .info-card p,
    .info-card small {
        font-size: 0.875rem;
    }
}

/* Team Cards */
.team-card {
    text-align: center;
    padding: 2rem;
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-card h5 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.team-card p {
    color: #64748b;
    font-size: 0.875rem;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h5 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.blog-card p {
    color: #64748b;
    font-size: 0.9rem;
}

.blog-card .date {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Contact Form */
.contact-form .form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

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

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-badge.operational {
    background: #d1fae5;
    color: #059669;
}

.status-badge.degraded {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.down {
    background: #fee2e2;
    color: #dc2626;
}

/* Info card flex fix */
.info-card .d-flex {
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 575px) {
    .info-card .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .info-card .status-badge {
        margin-top: 0.5rem;
    }
}

/* Changelog */
.changelog-item {
    padding: 1.5rem;
    border-left: 3px solid var(--primary);
    background: var(--light-bg);
    margin-bottom: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.changelog-item .version {
    font-weight: 700;
    color: var(--primary);
}

.changelog-item .date {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Legal Pages */
.legal-content h2 {
    margin-top: 2rem;
}

.legal-content ul {
    color: #475569;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* Responsive tables */
.legal-content .table {
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .legal-content .table {
        font-size: 0.8rem;
    }

    .legal-content .table th,
    .legal-content .table td {
        padding: 0.5rem;
    }
}

/* Table wrapper for horizontal scroll on mobile */
.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Login Page */
.login-header {
    padding: 6rem 0 2rem;
}

.login-section {
    padding: 2rem 0 6rem;
    background: var(--light-bg);
    min-height: calc(100vh - 400px);
}

.login-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

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

.login-logo .brand {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.login-form .form-label {
    font-weight: 600;
    color: var(--secondary);
}

.login-form .form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

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

.login-form .input-group-text {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-right: none;
    color: #64748b;
}

.login-form .input-group .form-control {
    border-left: none;
}

.login-form .input-group .form-control:focus {
    border-left: none;
}

.login-form .input-group:focus-within .input-group-text {
    border-color: var(--primary);
}

.login-form .form-text {
    font-size: 0.8rem;
    color: #94a3b8;
}

.login-form .form-text code {
    background: var(--light-bg);
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

.login-help {
    text-align: left;
}

.login-help code {
    background: var(--light-bg);
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header {
        padding: 2.5rem 0 1.5rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 2rem;
    }

    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .stat-item {
        margin-bottom: 1rem;
    }

    .timeline-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .timeline-wrapper::before {
        top: 0;
        bottom: 0;
        left: 20px;
        right: auto;
        width: 3px;
        height: auto;
    }

    .timeline-item {
        text-align: left;
        padding-left: 60px;
    }

    .timeline-number {
        position: absolute;
        left: 0;
        margin: 0;
    }

    .ksef-cta {
        padding: 2rem 1.5rem;
    }

    .page-header {
        padding: 2rem 0 1.25rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }
}
