/* Vesting Contracts Page Styles */
.vesting-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #e2e8f0;
}

.vesting-header {
    text-align: center;
    margin-bottom: 50px;
}

.vesting-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.vesting-header .subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin: 0 0 5px 0;
}

.stat-content p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

/* Vesting Section */
.vesting-section {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: #475569;
}

.action-btn.secondary:hover {
    background: #334155;
}

/* Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-box {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
}

.info-box h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3b82f6;
    margin-bottom: 15px;
}

.info-box p, .info-box ul {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.info-box ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3b82f6;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-controls select {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-controls select:hover {
    border-color: #3b82f6;
}

.filter-controls select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Contracts List */
.contracts-list {
    min-height: 200px;
}

.contract-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contract-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    transform: translateX(5px);
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.contract-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.contract-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.contract-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.contract-status.cliff {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.contract-status.completed {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.contract-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.contract-detail {
    display: flex;
    flex-direction: column;
}

.contract-detail-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

.contract-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.progress-section {
    margin-top: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.contract-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.contract-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contract-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.contract-btn.primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.contract-btn.secondary {
    background: #334155;
    color: #e2e8f0;
}

.contract-btn.secondary:hover {
    background: #475569;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 30px;
}

/* Calculator */
.calculator-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.calculator-input {
    display: flex;
    flex-direction: column;
}

.calculator-input label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}

.calculator-input input,
.calculator-input select {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    padding: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.calculator-input input:focus,
.calculator-input select:focus {
    outline: none;
    border-color: #3b82f6;
}

.calculator-results {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #334155;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 0.95rem;
    color: #94a3b8;
}

.result-value {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* Documentation Box */
.doc-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.doc-box h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.doc-box p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.doc-link {
    display: inline-block;
    color: #3b82f6;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.doc-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content.vesting-modal {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    margin: auto;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.modal-header .close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-header .close-btn:hover {
    color: #fff;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    padding: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .action-btn {
    flex: 1;
    justify-content: center;
}

/* Light Theme Support */
body.light-theme .vesting-container {
    color: #1e293b;
}

body.light-theme .vesting-header h1 {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .stat-box,
body.light-theme .vesting-section,
body.light-theme .info-box,
body.light-theme .contract-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-theme .stat-content h3,
body.light-theme .section-header h2,
body.light-theme .contract-title {
    color: #1e293b;
}

body.light-theme .stat-content p,
body.light-theme .info-box p,
body.light-theme .contract-detail-label {
    color: #64748b;
}

body.light-theme .filter-controls select,
body.light-theme .calculator-input input,
body.light-theme .calculator-input select,
body.light-theme .form-group input,
body.light-theme .form-group select {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vesting-header h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-controls {
        width: 100%;
        flex-direction: column;
    }

    .filter-controls select {
        width: 100%;
    }

    .contract-details {
        grid-template-columns: 1fr;
    }

    .contract-actions {
        flex-direction: column;
    }

    .calculator-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
