/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* about page */
.about-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;

}
/* Main Navigation */
.main-nav {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 28px;
    font-weight: 600;
    color: #000;
}

.nav-right {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: #0066CC;
    font-size: 16px;
}

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


/* Category Navigation */
.category-nav {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-categories {
    display: flex;
    gap: 32px;
    margin-bottom: 12px;
}

.main-category {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-category:hover {
    color: #0066CC;
}

.main-category.active {
    color: #0066CC;
}

.sub-categories {
    display: flex;
    gap: 24px;
    overflow:scroll;
}

.sub-category {
    font-size: 14px;
    color: #666;
}

.sub-category:hover {
    color: #0066CC;
}

.hidden {
    display: none
}
.sub-category.active {
    color: #000;
    font-weight: 500;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Home Page Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.btn-learn-more {
    background-color: #0066CC;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.btn-learn-more:hover {
    background-color: #0066CC;
    color: white;
}

/* Info Section */
.info-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.info-section p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Contract Examples */
.contract-examples {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.contract-examples h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
}

.contract-list {
    list-style: none;
    padding: 0;
    margin-bottom: 24px
}

.contract-list li {
    padding: 8px 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: flex-start;
}

.contract-list li::before {
    content: "■";
    color: #0066CC;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Contract Listing Page */
.contracts-header {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
    color: #333;
}

.contracts-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 32px;
}

.contracts-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.contracts-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: #0066CC;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 10px;
}

.contracts-table {
    width: 100%;
    border-collapse: collapse;
}

.contracts-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e5e5;
}

.contracts-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

/* Admin Interface Styles */
.admin-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-content {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.form-grid {
    gap: 20px;
}

.form-group label {
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    background: #3B82F6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2563EB;
}

.btn-secondary {
    background: #6B7280;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}
.btn-secondary:hover {
    background: #4B5563;
    font-weight: 700;
}

.btn-warning {
    background: #F59E0B;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s
}
.btn-warning:hover{
    background: #a25906;
    font-weight: 700;
}

.action-buttons {
    white-space: nowrap;
}

table {
    border-collapse: collapse;
}

table th {
    font-weight: 600;
    color: #374151;
    background: #F9FAFB;
}

table td {
    color: #1F2937;
}

.category-badge {
    white-space: nowrap;
}

.status-badge {
    white-space: nowrap;
    font-weight: 500;
}

.contract-question {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    display: block;
    margin-bottom: 4px;
}

.contract-date {
    font-size: 13px;
    color: #666;
}

.price-yes {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.price-no {
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.total-value {
    font-size: 14px;
    color: #666;
}

.regulator {
    font-size: 14px;
    color: #333;
}

.decision-date {
    font-size: 14px;
    color: #666;
}

.price-change {
    font-size: 14px;
    font-weight: 500;
}

.price-change.positive {
    color: #28A745;
}

.price-change.negative {
    color: #DC3545;
}

/* Proposed Contracts Grid */
.proposed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.proposed-contract {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

/* Contract Detail Page */
.contract-detail-header {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.contract-detail-header h1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.market-status {
    font-size: 14px;
    color: #666;
}

.price-boxes {
    display: flex;
    gap: 20px;
    margin: 32px 0;
}

.price-box {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.price-box.yes {
    background-color: #28A745;
    color: white;
}

.price-box.no {
    background-color: #DC3545;
    color: white;
}

.price-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.price-value {
    font-size: 28px;
    font-weight: 600;
}

.price-percent {
    font-size: 18px;
    font-weight: 500;
}

/* Compact Price Box Styles */
.price-box-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    max-width: 300px;
}

.price-box-compact.yes {
    background-color: #28A745;
    color: white;
}

.price-box-compact.no {
    background-color: #DC3545;
    color: white;
}

.price-box-compact:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.price-text {
    flex: 1;
}

.price-icon {
    font-size: 16px;
    margin-left: 8px;
}

/* Contract Tabs */
.contract-tabs {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
    border-bottom: 1px solid #e5e5e5;
}

.tab-list {
    display: flex;
    gap: 32px;
}

.tab-link {
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-link.active {
    color: #000;
    border-bottom-color: #0066CC;
}

/* Chart Section */
.chart-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.chart-container {
    background-color: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
}

/* Contract Details Table */
.details-table {
    width: 100%;
}

.details-table td {
    padding: 12px 0;
    font-size: 14px;
}

.details-table td:first-child {
    color: #666;
    width: 150px;
}

/* Tab Content */
.tab-content {
    width: 100%;
}

.tab-content.active {
    display: block !important;
}

/* Contract Stats Box */
.contract-stats-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contract-stats-box h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table td {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #e5e5e5;
}

.stats-table td:first-child {
    color: #666;
    font-weight: 500;
}

.stats-table td:last-child {
    text-align: right;
    font-weight: 600;
}

/* Trading Activity Table */
.trading-activity-table {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.trading-activity-table .table th {
    background: #fff;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    border-bottom: 2px solid #dee2e6;
}

.trading-activity-table .table td {
    font-size: 13px;
    padding: 8px 12px;
}
}

.details-table td:last-child {
    color: #333;
}

/* Terms Page */
.terms-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.terms-container h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
}

.terms-container h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 16px;
}

.terms-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.terms-content p {
    margin-bottom: 16px;
}

.terms-content strong {
    font-weight: 600;
    color: #000;
}

/* Forms */
.form-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.form-container h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: #0066CC;
}

.btn-primary {
    min-width: 10%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    background-color: #0066CC;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align:center;
}

.btn-primary:hover {
    background-color: #0052A3;
}

/* Dashboard Cards */
.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.dashboard-card {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
}

.dashboard-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
}

.btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Form Styles for Modal */
.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    transition: border-color 0.2s;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Utility Classes */
.text-muted {
    color: #666;
}

.text-center {
    text-align: center;
}
.signup-header{
    margin-bottom: 12px;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
}
.mt-4 {
    margin-top: 24px;
}
.mt-2 {
    margin-top: 12px;
}
.mb-4 {
    margin-bottom: 24px;
}
.mb-2 {
    margin-bottom: 12px;
}
/* Flash Messages */
.alert {
    max-width: 1200px;
    margin: 20px auto;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}