/* Shared styles for pricing system */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fff 0%, #666 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    color: white;
    padding: 30px;
    position: relative;
}

.header.config {
    background: linear-gradient(135deg, #777 0%, #666 100%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 50px;
    width: auto;
    max-width: 300px;
    /* Remove filter since using actual logo file */
}

.header-text {
    text-align: left;
}

.header-text h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 300;
}

.header-text p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.header-nav-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.content {
    padding: 40px;
}

.section {
    margin-bottom: 30px;
    padding: 25px;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    background: #fafafa;
}

.section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #e26d27;
    padding-bottom: 10px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input[type="text"], input[type="number"], input[type="password"], select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, select:focus {
    outline: none;
    border-color: #4facfe;
}

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

.checkbox-item {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    transition: all 0.3s;
}

.checkbox-item:hover {
    border-color: #e26d27;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.checkbox-item.selected {
    border-color: #e26d27;
    background: #f1f1f1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    width: 100%;
}

.checkbox-content {
    flex: 1;
    margin-left: 12px;
}

.checkbox-item input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

.multiplier-lock-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.multiplier-lock-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.multiplier-lock-btn.locked {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.multiplier-lock-btn.locked:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.8);
}

.lock-icon {
    user-select: none;
    pointer-events: none;
}

.options-section {
    margin-top: 25px;
    padding: 20px;
    background: #f1f1f1;
    border-radius: 10px;
    border-left: 4px solid #e26d27;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.option-item:hover {
    border-color: #e26d27;
}

.option-item.selected {
    border-color: #e26d27;
    background: #f8f8f8;
}

.option-item input[type="checkbox"] {
    margin-right: 10px;
}

.results {
    background: #ddd;
    border-color: #333;
    border-width: 3px;
    color: black;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.results h2 {
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.breakdown {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.total {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.total-amount {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.per-fte {
    font-size: 1.2rem;
    opacity: 0.9;
}

.warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin: 15px 0;
}

.tier-info {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin: 15px 0;
}

.btn {
    padding: 15px 30px;
    margin: 0 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #e26d27;
    color: white;
}

.btn-primary:hover {
    background: #e26d27;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.actions {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
}

/* Configuration specific styles */
.nav-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.nav-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.nav-tab.active {
    background: white;
    color: #ff6b6b;
    border-bottom: 3px solid #ff6b6b;
}

.nav-tab:hover {
    background: #e9ecef;
}

.tab-content {
    display: none;
}

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

.product-section {
    margin-bottom: 40px;
    padding: 30px;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    background: #fafafa;
}

.product-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.6rem;
    border-bottom: 3px solid #ff6b6b;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
}

.product-icon {
    width: 40px;
    height: 40px;
    background: #ff6b6b;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.pricing-group {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.pricing-group h3 {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.export-import {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.export-import h3 {
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
}

.status-message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
}

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

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

.discount-settings {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Pricing Table Styles */
.pricing-table-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    border: 2px solid #dee2e6;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 2px solid #6c757d;
}

.pricing-table th {
    background: #e9ecef;
    color: #212529;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid #6c757d;
    border-right: 1px solid #6c757d;
}

.pricing-table th:last-child {
    border-right: none;
}

.pricing-table th:first-child {
    width: 40%;
    min-width: 200px;
}

.pricing-table th:not(:first-child) {
    text-align: right;
    width: 15%;
    min-width: 100px;
}

.pricing-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    color: #212529;
    font-size: 0.95rem;
    background: #ffffff;
}

.pricing-table td:last-child {
    border-right: none;
}

.pricing-table td:first-child {
    font-weight: 500;
    background: #f8f9fa;
}

.pricing-table td:not(:first-child) {
    text-align: right;
    font-family: 'Consolas', 'Monaco', monospace;
}

.pricing-table tr:hover {
    background: #f1f3f4;
}

.pricing-table tr:hover td:first-child {
    background: #e9ecef;
}

.pricing-table tr.total-row {
    border-top: 3px solid #495057;
    background: #e9ecef;
}

.pricing-table tr.total-row td {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 15px 12px;
    background: #e9ecef;
    border-bottom: 2px solid #6c757d;
}

.pricing-table tr.total-row:hover td {
    background: #dee2e6;
}

.pricing-table tr.even-spread-row {
    border-top: 2px solid #495057;
    background: #f8f9fa;
}

.pricing-table tr.even-spread-row td {
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 12px;
    background: #f8f9fa;
    border-bottom: 2px solid #6c757d;
    color: #495057;
    font-style: italic;
}

.pricing-table tr.even-spread-row:hover td {
    background: #e9ecef;
    color: #212529;
}

.pricing-table tr.subtotal-row {
    border-top: 2px solid #6c757d;
    background: #f1f3f4;
}

.pricing-table tr.subtotal-row td {
    font-weight: 600;
    font-style: italic;
    background: #f1f3f4;
}

.pricing-table tr.subtotal-row:hover td {
    background: #e9ecef;
}

.pricing-table tr.note-row {
    background: #f8f9fa;
    border-top: 1px solid #adb5bd;
}

.pricing-table tr.note-row td {
    font-size: 0.9rem;
    color: #6c757d;
    padding: 10px 12px;
    background: #f8f9fa;
    font-style: italic;
}

.pricing-table tr.note-row:hover td {
    background: #e9ecef;
    color: #495057;
}

/* Includes sections styling */
.includes-section {
    background: #f1f1f1;
    border: 2px solid #e26d27;
    border-radius: 10px;
    margin-top: 15px;
    padding: 3px;
}

.includes-subsection {
    margin-bottom: 20px;
    padding: 15px;
    background: #f1f1f1;
    border-radius: 8px;
    border-left: 4px solid #e26d27;
}

.includes-subsection h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.includes-subsection .option-item {
    background: white;
    border: 1px solid #e0e0e0;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.includes-subsection .option-item:hover {
    border-color: #e26d27;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.includes-subsection .option-item input[type="checkbox"] {
    color: #28a745;
    cursor: pointer;
    transform: scale(1.1);
}

.includes-subsection .option-item label {
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

/* Small buttons for includes controls */
.btn-small {
    padding: 6px 12px;
    margin: 0 5px 0 0;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-small.btn-primary {
    background: #e26d27;
    color: white;
}

.btn-small.btn-primary:hover {
    background: #e26d27;
    transform: translateY(-1px);
}

.btn-small.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-small.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.negative-amount {
    color: #008000 !important;
}

.positive-amount {
    color: black;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #e26d27;
}

input:focus + .slider {
    box-shadow: 0 0 1px #e26d27;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

@media (max-width: 768px) {
    .pricing-table-container {
        padding: 15px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .pricing-table th:first-child {
        min-width: 150px;
    }
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #e91e63 0%, #d81b60 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d81b60 0%, #c2185b 100%);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    box-shadow: 0 6px 20px rgba(102, 102, 102, 0.4);
    transform: translateY(-2px);
}

.btn-hubspot {
    background: linear-gradient(135deg, #ff7a59, #ff5c35);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 122, 89, 0.3);
}

.btn-hubspot:hover {
    background: linear-gradient(135deg, #ff5c35, #ff4520);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 122, 89, 0.4);
}

.btn-hubspot:disabled {
    background: #cccccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-hubspot-secondary {
    background: linear-gradient(135deg, #00a4bd, #0091ae);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 164, 189, 0.3);
}

.btn-hubspot-secondary:hover {
    background: linear-gradient(135deg, #0091ae, #007a93);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 164, 189, 0.4);
}

.btn-hubspot-secondary:disabled {
    background: #cccccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #45a049 0%, #3e8e41 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.assumptions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.assumptions-group {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
}

.assumptions-group h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 5px;
}

.assumptions-group textarea {
    width: 100%;
    min-height: 120px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

/* Assumption Editor Styles */
.assumption-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.assumption-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.assumption-number {
    font-weight: bold;
    color: #ff6b35;
    margin-right: auto;
}

.btn-icon {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ffffff;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-icon.btn-delete:hover {
    background: rgba(255, 50, 50, 0.3);
    border-color: rgba(255, 50, 50, 0.5);
}

.assumption-item-content {
    padding: 10px 0;
}

.assumption-item-content.collapsed {
    display: none;
}

.visibility-rules {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.visibility-rules h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #ff6b35;
}

.visibility-rules h4 small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: normal;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkbox-grid label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-grid input[type="checkbox"] {
    cursor: pointer;
}

/* Margins and Costs specific styles */
.margins-costs-section {
    background: rgba(255,255,255,0.03) !important;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding: 25px;
}

.margins-costs-section h3 {
    color: #ff6b35 !important;
    border-bottom: 2px solid rgba(255,107,53,0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.negative-amount {
    color: #f44336 !important;
    font-weight: bold;
}

/* Hide elements from PDF export */
.no-pdf {
    /* This class will be used to hide elements during PDF generation */
}

@media print {
    .no-pdf {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 20px;
    }

    .checkbox-group, .pricing-grid, .options-grid, .assumptions-grid {
        grid-template-columns: 1fr;
    }

    .nav-tab {
        font-size: 14px;
        padding: 12px 15px;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-logo {
        height: 40px;
        max-width: 250px;
    }

    .header-text h1 {
        font-size: 2rem;
    }

    .nav-link {
        position: static;
        margin-top: 15px;
        display: inline-block;
    }

    .switch {
        width: 50px;
        height: 28px;
    }

    .slider:before {
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 4px;
    }

    input:checked + .slider:before {
        -webkit-transform: translateX(22px);
        -ms-transform: translateX(22px);
        transform: translateX(22px);
    }
}

/* HubSpot Integration Styles */
.hubspot-integration {
    padding: 20px;
}

.hubspot-integration h3 {
    color: #ff5c35;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff5c35;
    padding-bottom: 10px;
}

.hubspot-integration h4 {
    color: #333;
    margin: 25px 0 15px 0;
    font-size: 1.1em;
}

.hubspot-config-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.hubspot-modal {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-tab {
    padding: 8px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tab.active {
    background: #ff5c35;
    color: white;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.search-button {
    padding: 10px 20px;
    background: #ff5c35;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #ff4520;
}

.quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-results {
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    background: white;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.result-item:hover {
    background: #f8f9fa;
    border-color: #ff5c35;
}

.result-item.selected {
    background: #fff5f3;
    border-color: #ff5c35;
    box-shadow: 0 2px 5px rgba(255, 92, 53, 0.2);
}

.result-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.result-details {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #666;
}

.result-badge {
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 3px;
}

.result-amount {
    color: #28a745;
    font-weight: 500;
}

.result-domain {
    color: #6c757d;
}

.selected-record {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 5px;
    border: 1px solid #007bff;
}

.record-info {
    margin-top: 10px;
}

.loading-spinner, .loading-message {
    text-align: center;
    padding: 30px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #999;
}

.message {
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

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

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

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

.create-deal-form {
    padding: 20px;
}

.create-deal-form h3 {
    margin-bottom: 20px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.upload-progress {
    text-align: center;
    padding: 30px;
}

.upload-progress h3 {
    margin-bottom: 20px;
    color: #333;
}

.file-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff5c35, #ff7a59);
    width: 0%;
    transition: width 0.3s ease;
}

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

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

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

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

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

.config-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.config-status.success {
    background: #d4edda;
    color: #155724;
}

.config-status.error {
    background: #f8d7da;
    color: #721c24;
}

.config-status.info {
    background: #d1ecf1;
    color: #0c5460;
}

.help-modal {
    max-width: 800px;
}

.help-modal ol {
    margin: 15px 0;
    padding-left: 20px;
}

.help-modal ul {
    margin: 10px 0;
    padding-left: 40px;
}

.help-modal h4 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.help-note {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    border: 1px solid #ffeaa7;
}

.api-key-section, .oauth-section {
    transition: all 0.3s ease;
}

.help-button {
    float: right;
    background: #0070d2;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.help-button:hover {
    background: #0056b3;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.secondary-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
}

.secondary-button:hover {
    background: #5a6268;
}

.primary-button {
    background: #0070d2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
}

.primary-button:hover:not(:disabled) {
    background: #0056b3;
}

.primary-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.success-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
}

.success-button:hover {
    background: #218838;
}

.success-button.success {
    background: #155724;
}

.test-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.95em;
}

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

.test-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* OAuth Help Dialog Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.oauth-help-dialog {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.oauth-help-dialog h3 {
    color: #0070d2;
    margin-bottom: 20px;
}

.oauth-help-dialog h4 {
    color: #333;
    margin: 20px 0 10px 0;
}

.oauth-help-dialog ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.oauth-help-dialog li {
    margin-bottom: 8px;
}

.oauth-help-dialog code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    word-break: break-all;
}

.help-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-footer button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
}

.help-footer button:hover {
    background: #5a6268;
}

.help-footer a {
    color: #0070d2;
    text-decoration: none;
    font-weight: 500;
}

.help-footer a:hover {
    text-decoration: underline;
}

/* Opportunity Selector Modal Styles */
.opportunity-modal {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.opportunity-modal .modal-header {
    background: #0070d2;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.opportunity-modal .modal-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.opportunity-modal .modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.institution-context {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #666;
}

.search-section {
    margin-bottom: 25px;
}

.search-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input-container input {
    flex: 1;
}

.search-button {
    background: #0070d2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.search-button:hover {
    background: #0056b3;
}

.search-results h5 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1em;
}

.recent-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.opportunity-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.opportunity-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.opportunity-item:last-child {
    border-bottom: none;
}

.opportunity-item:hover {
    background: #f8f9fa;
}

.opportunity-item.selected {
    background: #e3f2fd;
    border-left: 4px solid #0070d2;
}

.opportunity-main {
    flex: 1;
}

.opportunity-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.opportunity-account {
    color: #666;
    font-size: 0.9em;
}

.opportunity-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
    min-width: 150px;
}

.opportunity-stage {
    background: #e0f7fa;
    color: #00695c;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.opportunity-amount {
    font-weight: 600;
    color: #1b5e20;
    font-size: 0.9em;
}

.opportunity-date {
    color: #666;
    font-size: 0.8em;
}

.loading-spinner, .no-results, .error-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error-message {
    color: #d32f2f;
    background: #ffeaa7;
    border-radius: 6px;
}

.opportunity-modal .modal-footer {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-opportunity {
    color: #333;
    font-size: 0.95em;
}

/* Upload Progress Modal Styles */
.upload-progress-modal, .upload-success-modal, .upload-error-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.upload-progress-modal .modal-header,
.upload-success-modal .modal-header,
.upload-error-modal .modal-header {
    background: #0070d2;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-success-modal .modal-header {
    background: #28a745;
}

.upload-error-modal .modal-header {
    background: #dc3545;
}

.upload-info, .success-info, .error-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.upload-info p, .success-info p, .error-info p {
    margin: 8px 0;
    font-size: 0.95em;
}

.progress-container {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0070d2, #4fc3f7);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    color: #666;
    font-size: 0.9em;
}

.success-actions, .error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.success-actions a {
    text-decoration: none;
}

/* Toast Notifications */
.error-toast, .success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #dc3545;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.success-toast {
    border-left-color: #28a745;
}

.toast-content {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    font-size: 18px;
}

.toast-message {
    flex: 1;
    color: #333;
    font-size: 0.95em;
}

.toast-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
}

.toast-close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments for modals */
@media (max-width: 768px) {
    .opportunity-modal {
        max-width: 95vw;
        margin: 10px;
    }

    .opportunity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .opportunity-details {
        align-items: flex-start;
        text-align: left;
        min-width: auto;
    }

    .search-input-container {
        flex-direction: column;
    }

    .opportunity-modal .modal-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .button-group {
        justify-content: stretch;
    }

    .button-group button {
        flex: 1;
    }
}

/* Institution Autocomplete Styles */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: #f8f9fa;
}

.autocomplete-item .institution-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 0.95em;
}

.autocomplete-item .institution-alias {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-bottom: 4px;
}

.autocomplete-item .institution-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8em;
    color: #888;
}

.autocomplete-item .institution-state {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.autocomplete-item .institution-headcount {
    color: #666;
}

.autocomplete-item mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 0 2px;
    border-radius: 2px;
}

/* Institution Details Display */
.institution-details {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: none;
}

.institution-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.institution-alias-display,
.institution-state-display,
.institution-website {
    font-size: 0.9em;
    color: #555;
}

.institution-website a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.2s ease;
}

.institution-website a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* Responsive adjustments for autocomplete */
@media (max-width: 768px) {
    .autocomplete-item .institution-meta {
        flex-direction: column;
        gap: 4px;
    }

    .institution-info {
        font-size: 0.85em;
    }
}

/* Responsive header navigation */
@media (max-width: 1024px) {
    .header {
        padding: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .header-left {
        justify-content: center;
    }

    .header-nav-area {
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
    }

    .header-text h1 {
        font-size: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px;
    }

    .header-left {
        flex-direction: column;
        gap: 10px;
    }

    .header-text h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 40px;
    }

    .header-text h1 {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 5px 10px;
        font-size: 12px;
    }
}