﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

@font-face {
    font-family: 'iranyekanregular';
    src: url('../../bootstrap/fonts/iranyekanregular.ttf') format('truetype');
}

@font-face {
    font-family: 'irsans';
    src: url('../../bootstrap/fonts/irsans.ttf') format('truetype');
}

html,
body {
    font-family: 'iranyekanregular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    overflow-x: hidden;
    background: #ececed;
    min-height: 90vh;
    color: #2c3e50;
}

a {
    color: #0366d6;
    text-decoration: none;
}

a:hover {
    
}

/* Navbar Styles */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    position: relative;
    z-index: 1040;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    margin-right: 1.5rem;
}

.logo-nun {
    color: #2c3e50;
}

.logo-buget {
    color: #3498db;
}

.navbar-nav {
    gap: 0.25rem;
}

.nav-link {
    color: #5a6c7d !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
    padding: 0.5rem 0.75rem !important;
}

.nav-link:hover {
    color: #3498db !important;
}

.navbar-toggler {
    order: -1;
    margin-left: auto;
    margin-right: 1rem;
}

.dropdown-menu {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 0.25rem;
}

.dropdown-item {
    color: #2c3e50;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #3498db;
}

/* Button Styles */
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-primary:hover {
    background-color: #1861ac;
    border-color: #1861ac;
}

.btn-outline-primary {
    color: #5a6c7d;
    border-color: #5a6c7d;
}

.btn-outline-primary:hover {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

/* Footer */
.footer {
    position: relative;
    width: 100%;
    line-height: 1.6;
    padding: 1rem 0;
    background-color: #f8f9fa;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.footer-warning {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-certifications {
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.certifications-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    align-items: center;
}

.certification-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.certification-link:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.certification-link i {
    font-size: 1.2rem;
}

@media (max-width: 576px) {
    .certifications-links {
        gap: 1rem;
    }

    .certification-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .certification-link i {
        font-size: 1rem;
    }
}

/* Main Content */
main {
    min-height: calc(100vh - 250px);
}

/* Borders */
.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

/* Input Utilities */
.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit .input-custom {
    flex: 1;
    padding-left: 50px;
    box-sizing: border-box;
}

.input-unit {
    position: absolute;
    left: 15px;
    color: #666;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

.text-muted {
    color: #6c757d !important;
}

/* Number Input - Hide Arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.input-custom::-webkit-outer-spin-button,
.input-custom::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-custom[type="number"] {
    -moz-appearance: textfield;
}

/* Custom Input Styles */
.input-custom {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'iranyekanregular', sans-serif;
    transition: border-color 0.2s;
}

.input-custom:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Readonly Input */
.input-custom.readonly-input,
.input-custom.readonly-style {
    background-color: #e9ecef !important;
    cursor: not-allowed !important;
    color: #6c757d;
}

.input-custom.readonly-style:focus {
    background-color: #e9ecef !important;
    border-color: #bdc3c7 !important;
    box-shadow: none;
}

/* Responsive Typography */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.2rem;
        margin-right: 1rem;
    }

    .navbar-collapse {
        margin-top: 0.5rem;
    }

    .nav-link {
        padding: 0.4rem 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.5rem !important;
    }

    .dropdown-menu {
        font-size: 0.9rem;
    }

    .btn-sm {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer-warning {
        font-size: 0.8rem;
    }

    main {
        min-height: calc(100vh - 200px);
    }
}

/* About Page Styles */
.about-section {
    padding: 2rem 0;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    font-size: 2.5rem;
    color: #1a3a52;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.about-header .lead {
    font-size: 1.25rem;
    color: #666;
    font-weight: 500;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tool-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.icon-wrapper {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tool-card h3 {
    font-size: 1.5rem;
    color: #1a3a52;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tool-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    padding-left: 1.5rem;
    position: relative;
}

.feature-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Certifications Section */
.certifications-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border-top: 4px solid #007bff;
}

.certifications-section h3 {
    font-size: 1.5rem;
    color: #1a3a52;
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-description {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.certification-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    text-decoration: none;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #007bff;
    text-align: center;
    font-weight: 500;
    width: 100%;
}

.certification-card a:hover {
    border-color: #007bff;
    background: #f0f7ff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
    transform: translateY(-3px);
}

.certification-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.contact-section h3 {
    font-size: 1.5rem;
    color: #1a3a52;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-section p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.social-link i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .about-header h1 {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 1.5rem;
    }

    .page-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .header-illustration {
        font-size: 3rem;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .method-cards {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        margin-bottom: 1rem;
    }
}

/* HowToUse Page Styles */
.howto-container {
    padding: 2rem 0;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    gap: 2rem;
}

.header-content {
    flex: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .lead {
    font-size: 1.1rem;
    opacity: 0.95;
}

.header-illustration {
    flex: 0 0 auto;
    font-size: 4rem;
    opacity: 0.8;
}

.tools-section {
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left: 4px solid #007bff;
}

.feature-icon {
    font-size: 2.5rem;
    color: #007bff;
    flex-shrink: 0;
}

.header-text h2 {
    font-size: 1.5rem;
    color: #1a3a52;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.header-text .subtitle {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.feature-content {
    padding: 2rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-card {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-bottom: 2px solid #e1e8ed;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-header h4 {
    margin: 0;
    color: #1a3a52;
    font-size: 1.1rem;
    font-weight: 600;
}

.step-content {
    padding: 1.5rem;
    color: #555;
}

.step-content > p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.feature-list i {
    font-size: 0.9rem;
    color: #007bff;
    flex-shrink: 0;
}

.format-support {
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
}

.format-label {
    display: block;
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.format-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.format-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f0f7ff;
    color: #007bff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #bde0ff;
}

.format-tag i {
    font-size: 0.8rem;
}

.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.method-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 1rem;
}

.method-card h5 {
    margin: 0 0 0.75rem 0;
    color: #1a3a52;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.method-card h5 i {
    font-size: 0.9rem;
}

.method-card p {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: #666;
}

.method-card ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.method-card li {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.25rem;
}

.example {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-family: 'Courier New', monospace;
}

.example i {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
}

.process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: #f0f7ff;
    border-radius: 6px;
    color: #007bff;
    font-size: 1rem;
}

.process-step p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fffbea;
    border-left: 3px solid #ffc107;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.tip-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.tip-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #856404;
}

.warning-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f8d7da;
    border-left: 3px solid #dc3545;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.warning-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.warning-note p {
    margin: 0;
    font-size: 0.9rem;
    color: #721c24;
}

.converter-info,
.batch-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-block {
    background: #f0f7ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.info-block h5 {
    margin: 0 0 0.75rem 0;
    color: #1a3a52;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-block h5 i {
    font-size: 0.9rem;
}

.info-block p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Tips Section */
.tips-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tips-section h3 {
    font-size: 1.5rem;
    color: #1a3a52;
    margin-bottom: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-section h3 i {
    font-size: 1.2rem;
    color: #ffc107;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid #007bff;
    transition: all 0.3s ease;
}

.tip-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.tip-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 8px;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: #007bff;
}

.tip-card h4 {
    font-size: 1.1rem;
    color: #1a3a52;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.tip-content {
    font-size: 0.9rem;
    color: #555;
}

.tip-content > p {
    margin: 0 0 0.75rem 0;
}

.tip-content ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.tip-content li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-content i {
    font-size: 0.75rem;
    flex-shrink: 0;
}

.tip-note {
    background: white;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-note i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: #28a745;
    font-size: 1rem;
}

.security-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.faq-item h5 {
    margin: 0 0 0.5rem 0;
    color: #1a3a52;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.faq-item h5 i {
    font-size: 0.8rem;
}

.faq-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}