/* Home Page Styles for InvoiceIssuer.Login */

/* Custom CSS Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --dark-bg: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --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);
}

/* Base Styles */
body {
    font-family: 'Vazir', 'Tahoma', Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
}

/* Header Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
}

.navbar {
    padding: 1rem 0;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

/* Floating Mobile Register Button */
.floating-register-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    animation: float-pulse 2s ease-in-out infinite;
}

.btn-floating {
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-floating:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
    text-decoration: none;
}

.btn-floating:active {
    transform: translateY(-1px);
}

/* Floating button animation */
@keyframes float-pulse {
    0%, 100% {
        transform: translateY(0px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
    }
}

/* Mobile adjustments for floating button */
@media (max-width: 576px) {
    .floating-register-btn {
        bottom: 15px;
        right: 15px;
    }
    
    .btn-floating {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 100px;
    }
}

/* Ensure floating button doesn't interfere with other elements */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px; /* Add padding to prevent button overlap with content */
    }
    
    /* Hide floating button when navbar is expanded to prevent overlap */
    .navbar-collapse.show ~ .floating-register-btn,
    .navbar-collapse.collapsing ~ .floating-register-btn {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
    }
    
    .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 1rem;
        text-align: center;
        border-radius: var(--border-radius);
        margin-bottom: 0.25rem;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--light-bg);
    }
    
    /* Auth buttons mobile styling */
    .navbar-nav .btn {
        margin: 0.5rem 0;
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
        border-radius: var(--border-radius);
    }
    
    .navbar-toggler {
        padding: 0.5rem;
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Dashboard Placeholder Mockup */
.dashboard-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-dashboard {
    width: 90%;
    height: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.mock-header {
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
}

.mock-header::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 15px;
    width: 120px;
    height: 30px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 4px;
}

.mock-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    height: 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.stat-card:nth-child(1)::before {
    content: '???';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-card:nth-child(1)::after {
    content: '???????? ?????';
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-card:nth-child(2)::before {
    content: '??';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    color: var(--success-color);
}

.stat-card:nth-child(2)::after {
    content: '????? ????';
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-card:nth-child(3)::before {
    content: '?';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    color: var(--warning-color);
}

.stat-card:nth-child(3)::after {
    content: '?? ??????';
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.mock-chart {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.mock-chart::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='80' viewBox='0 0 100 80'%3E%3Cpath d='M0,60 Q25,30 50,40 T100,20' stroke='%232563eb' stroke-width='3' fill='none'/%3E%3C/svg%3E") repeat-x;
    background-size: 100px 80px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Why Choose Us Section */
.why-choose-us {
    background: white;
}

.feature-item {
    padding: 2rem 1rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Key Features Section */
.key-features {
    background: var(--light-bg);
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-card-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    background: white;
}

.testimonial-card {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.testimonial-content p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-header h4 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 2rem;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price .currency,
.price .period {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.pricing-features li i {
    color: var(--success-color);
    margin-left: 0.5rem;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-item {
    padding: 2rem 1rem;
}

.contact-item i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    background: var(--dark-bg) !important;
    padding: 2rem 0;
}

.footer-links a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 500;
}

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

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 500;
}

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

.btn-block {
    width: 100%;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Demo Section Styles */
.demo-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.demo-credentials {
    background: white !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.demo-credentials h5 {
    color: var(--text-primary);
    font-weight: 600;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.credential-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1rem;
    color: var(--primary-color) !important;
    border: 1px solid var(--border-color) !important;
    min-width: 60px;
    text-align: center;
    transition: all 0.3s ease;
}

.credential-value:hover {
    background-color: var(--light-bg) !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.05);
}

.quick-credentials {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.credential-quick .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* Demo CTA Enhancements */
.demo-cta .btn-light {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    transition: all 0.3s ease;
}

.demo-cta .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsiveness for Demo Section */
@media (max-width: 768px) {
    .demo-credentials {
        margin-top: 2rem;
    }
    
    .credential-item {
        justify-content: space-between;
        margin-bottom: 1rem;
    }
    
    .credential-value {
        flex: 1;
        max-width: 120px;
    }
    
    .quick-credentials {
        margin-top: 1rem;
    }
    
    .demo-cta .btn-light {
        width: 100%;
        margin-bottom: 1rem;
    }
}