/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-sign-header {
    background-color: #8B0000;
    color: white;
    border: 2px solid #8B0000;
    padding: 10px 24px;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 110px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.15);
}

.btn-sign-header:hover {
    background-color: #A52A2A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.35);
}

.btn-sign-header:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.25);
}

.btn-sign-header.secondary {
    background-color: transparent;
    color: #8B0000;
    border: 2px solid #8B0000;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.15);
}

.btn-sign-header.secondary:hover {
    background-color: #8B0000;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.35);
}

.btn-sign-header.secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.25);
}

.header-buttons {
    display: flex;
    align-items: end;
    gap: 10px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #8B0000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height:70px;
    width: auto;
    max-width: 200px;
}

/* Main Content Styles */
.main-content {
    padding: 60px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.text-section {
    padding: 20px 0;
}

.main-heading {
    font-size: 36px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-create {
    background-color: transparent;
    color: #8B0000;
    border: 2px solid #8B0000;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-create:hover {
    background-color: #8B0000;
    color: white;
}

.btn-sign-main {
    background-color: #8B0000;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-sign-main:hover {
    background-color: #A52A2A;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 20px;
}

.close:hover {
    color: #8B0000;
}

.modal h2 {
    margin-bottom: 30px;
    color: #333333;
    font-size: 24px;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B0000;
}

.btn-submit {
    background-color: #8B0000;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #A52A2A;
}

/* Signature Canvas Styles */
.signature-container {
    text-align: center;
}

#signatureCanvas {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: crosshair;
    background-color: #ffffff;
}

.signature-controls {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-clear,
.btn-save {
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear {
    background-color: #f5f5f5;
    color: #333333;
    border: 1px solid #ddd;
}

.btn-clear:hover {
    background-color: #e0e0e0;
}

.btn-save {
    background-color: #8B0000;
    color: white;
    border: none;
}

.btn-save:hover {
    background-color: #A52A2A;
}

/* Footer Styles */
.footer {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    /* filter: brightness(0) invert(1); */
}

.tagline {
    color: #cccccc;
    font-size: 14px;
    margin: 0;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 15px;
}

.footer-links li::before {
    content: "»";
    position: absolute;
    right: 0;
    top: 0;
    color: #8B0000;
    font-weight: bold;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-link:hover {
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #444444;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #8B0000;
    transform: translateY(-2px);
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trust-badge {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    color: #333333;
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-logo {
    font-size: 24px;
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-text strong {
    font-size: 12px;
    color: #333333;
    font-weight: 600;
}

.badge-text span {
    font-size: 11px;
    color: #666666;
    font-weight: 500;
}

.badge-text small {
    font-size: 9px;
    color: #888888;
    line-height: 1.2;
}

.enamad .badge-text strong {
    color: #0066cc;
}

.samandehi .badge-text strong {
    color: #666666;
}

.footer-bottom {
    border-top: 1px solid #444444;
    padding-top: 20px;
    text-align: center;
}

.copyright {
    color: #cccccc;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .trust-badges {
        align-items: center;
    }
    
    .trust-badge {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-title {
        font-size: 16px;
    }
    
    .logo-text,
    .logo-accent {
        font-size: 20px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .main-heading {
        font-size: 28px;
    }
    
    .description {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-create,
    .btn-sign-main {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-heading {
        font-size: 24px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
}

/* Contract Bank Page Styles */
.contract-bank-page {
    padding: 40px 0 !important;
    background-color: #f5f5f5 !important;
    min-height: calc(100vh - 200px) !important;
}

.search-section {
    margin-bottom: 30px;
    padding: 20px 0;
}

.search-bar-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar {
    width: 100% !important;
    padding: 14px 50px 14px 20px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 30px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.search-bar:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 10px 0;
}

.category-tabs::-webkit-scrollbar {
    height: 6px;
}

.category-tabs::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: #8B0000;
    border-radius: 3px;
}

.category-tab {
    background-color: white !important;
    color: #666 !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.category-tab:hover {
    background-color: #f9f9f9;
    transform: translateY(-1px);
}

.category-tab.active {
    background-color: #8B0000 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3) !important;
}

.loading-indicator {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B0000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contract-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.contract-card {
    background-color: white !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    margin-bottom: 20px !important;
    border: 1px solid #e0e0e0 !important;
}

.contract-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.contract-card-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 12px !important;
    line-height: 1.5 !important;
}

.contract-card-price {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #8B0000 !important;
    margin-bottom: 20px !important;
    direction: ltr !important;
    text-align: left !important;
}

.download-btn {
    width: 100% !important;
    padding: 12px !important;
    background-color: #8B0000 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.download-btn:hover {
    background-color: #A52A2A;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.3);
}

.download-btn:active {
    transform: translateY(0);
}

.empty-state {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 18px;
}

/* Responsive Design for Contract Bank */
@media (max-width: 768px) {
    .contract-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .search-bar-wrapper {
        max-width: 100%;
    }
    
    .category-tabs {
        gap: 8px;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .contract-bank-page {
        padding: 20px 0;
    }
    
    .contract-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .category-tabs {
        gap: 6px;
    }
    
        .category-tab {
            padding: 8px 14px;
            font-size: 12px;
        }
    }

/* Profile Page Styles */
.profile-container {
    display: flex;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.profile-sidebar {
    width: 280px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.profile-title {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.profile-tab {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.profile-tab:hover {
    background-color: #f9f9f9;
}

.profile-tab.active {
    background-color: #ffc107;
    border-right-color: #ffc107;
    color: #333;
    font-weight: 600;
}

.profile-tab-icon {
    font-size: 24px;
    margin-left: 15px;
}

.profile-content {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
}

.contracts-table {
    width: 100%;
    border-collapse: collapse;
}

.contracts-table th {
    background-color: #8B0000;
    color: white;
    padding: 12px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

.contracts-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.contract-signed {
    color: #28a745;
    font-weight: 600;
}

.contract-pending {
    color: #ff9800;
    font-weight: 600;
}

.user-info-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
}

.form-control:focus {
    outline: none;
    border-color: #8B0000;
}

.btn-submit {
    background-color: transparent;
    color: #8B0000;
    border: 1px solid #8B0000;
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #8B0000;
    color: white;
}

.user-icon-large {
    font-size: 80px;
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #8B0000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activation-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-top: 8px;
}

.activation-link:hover {
    text-decoration: underline;
}

/* Responsive Profile */
@media (max-width: 992px) {
    .profile-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
    }
    
    .profile-tab {
        display: inline-flex;
        margin: 5px;
    }
}

@media (max-width: 768px) {
    .profile-content {
        padding: 20px;
    }
    
    .user-info-form {
        max-width: 100%;
    }
}
