/* Venture Relay - Global Component Styles */

/* CSS Variables for consistent theming */
:root {
    --primary-green: #059669;
    --primary-green-dark: #047857;
    --primary-green-light: #10b981;
    --primary-green-50: #ecfdf5;
    --primary-green-100: #d1fae5;
}

/* Global body styling */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Button Components */
.btn-primary {
    background: linear-gradient(to right, var(--primary-green), var(--primary-green-dark));
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--primary-green-dark), #065f46);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background: var(--primary-green-50);
}

.btn-outline:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Form Components */
.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s;
    outline: none;
    color: #111827;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

/* Card Components */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.card-lg {
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.radio-card {
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.radio-card:hover {
    border-color: #a7f3d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.radio-card:hover .radio-dot {
    border-color: #a7f3d0;
}

.radio-card.selected {
    border-color: var(--primary-green);
    background: var(--primary-green-50);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.radio-card.selected .radio-dot {
    border-color: var(--primary-green);
    background: white;
}

.radio-card.selected .radio-dot-inner {
    transform: scale(1);
}

/* Header Components */
.header-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Typography */
.heading-primary {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.heading-secondary {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.subheading {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.bold {
    font-weight: 700;
    color: #111827;
}

.text-muted {
    color: #6b7280;
}

/* Icon containers */
.icon-container {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(to bottom right, #34d399, var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.icon-sm {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Feature icons */
.feature-icon {
    width: 3rem;
    height: 3rem;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide the default radio input completely */
input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

/* Radio button custom styling */
.radio-dot {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0.75rem;
    position: relative;
    background: white;
    transition: all 0.2s ease;
}

.radio-dot-inner {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary-green);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s ease;
}

/* Utility classes */
.transition-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-hover:hover {
    transform: translateY(-1px);
}

/* Dashboard Specific Styles */

/* Dashboard Layout */
.dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 16rem;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 50;
}

.dashboard-main {
    margin-left: 0;
    min-height: 100vh;
    transition: margin-left 0.3s ease-in-out;
}

.dashboard-header {
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #f3f4f6;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 40;
}

.dashboard-content {
    padding: 1rem;
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-overlay.overlay-visible {
    opacity: 1;
    visibility: visible;
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #6b7280;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.nav-link.active {
    background-color: var(--primary-green-50);
    color: var(--primary-green);
}

.nav-link i {
    margin-right: 0.75rem;
    width: 1rem;
    text-align: center;
}

.nav-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.notification-badge {
    font-size: 0.75rem;
    line-height: 1;
}

/* Dashboard Sections */
.dashboard-section {
    display: block;
}

.dashboard-section.hidden {
    display: none;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.stat-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

.stat-icon {
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.25rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Activity Items */
.activity-item {
    display: flex;
    align-items: start;
    space-x: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.activity-item > div:first-child {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

/* Data Tables */
.table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.data-table {
    min-width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
}

.status-pending-review,
.status-pending-acceptance,
.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-in-market,
.status-approved,
.status-request-accepted {
    background-color: #d1fae5;
    color: #065f46;
}

.status-negotiating {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-transferred,
.status-adopted {
    background-color: #dcfce7;
    color: #166534;
}

.status-rejected,
.status-declined {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Form Grids */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Notification Items */
.notification-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

/* Template Download Section */
.template-download-section {
    padding: 1.5rem;
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #a7f3d0;
    border-radius: 1rem;
}

.template-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.template-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.template-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
    transform: translateY(-2px);
}

.template-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-green-50) 0%, var(--primary-green-100) 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.template-icon i {
    font-size: 1.25rem;
    color: var(--primary-green);
}

.template-title {
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.template-description {
    font-size: 0.75rem;
    color: #6b7280;
}

.template-card:hover .template-icon {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
}

.template-card:hover .template-icon i {
    color: white;
}

/* Mobile Responsive for Templates */
@media (min-width: 640px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .template-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Responsive Breakpoints */

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
    padding-bottom: 0;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    color: #6b7280;
    font-weight: 500;
    position: relative;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: var(--primary-green);
    background-color: var(--primary-green-50);
}

.tab-button.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
    font-weight: 600;
}

.tab-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-button.active .tab-number {
    background-color: var(--primary-green);
    color: white;
}

.tab-label {
    font-size: 0.875rem;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

/* Readiness Metrics */
.readiness-metric {
    padding: 1.5rem;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.readiness-metric:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Slider Container */
.slider-container {
    position: relative;
    padding: 1rem 0;
}

.readiness-slider {
    width: 100%;
    height: 0.5rem;
    border-radius: 0.25rem;
    background: linear-gradient(to right, var(--primary-green) 0%, var(--primary-green) 50%, #e5e7eb 50%, #e5e7eb 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s;
}

.readiness-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-green);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.readiness-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.readiness-slider::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-green);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.readiness-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.slider-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.current-value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.value-description {
    color: #111827;
    font-weight: 600;
    font-size: 0.875rem;
}

.slider-info {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--primary-green-50);
    border-left: 3px solid var(--primary-green);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #065f46;
}

/* Tooltip Icon */
.tooltip-icon {
    position: relative;
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tooltip-icon:hover i {
    color: var(--primary-green-dark);
}

.custom-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: #111827;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
    width: 16rem;
    max-width: 90vw;
    line-height: 1.4;
    animation: fadeIn 0.2s ease-in-out;
}

.custom-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 0.5rem;
    border: 0.375rem solid transparent;
    border-bottom-color: #111827;
}

/* File Upload Section */
.file-upload-section {
    padding: 1.5rem;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
}

.file-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    background: white;
}

.file-upload-area:hover {
    border-color: var(--primary-green);
    background: var(--primary-green-50);
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-label.has-file {
    opacity: 0.6;
}

.file-name {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--primary-green-50);
    border: 1px solid var(--primary-green);
    border-radius: 0.5rem;
    color: var(--primary-green-dark);
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-name::before {
    content: '📄';
    font-size: 1.25rem;
}

/* Small screens (phones) */
@media (min-width: 640px) {
    .dashboard-content {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-label {
        font-size: 1rem;
    }
}

/* Medium screens (tablets) */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large screens (desktops) */
@media (min-width: 1024px) {
    .dashboard-sidebar {
        transform: translateX(0);
        position: relative;
        height: 100vh;
        position: fixed;
    }
    
    .dashboard-main {
        margin-left: 16rem;
    }
    
    .mobile-overlay {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .dashboard-content {
        padding: 2rem;
    }
    
    .nav-text {
        display: block;
    }
}

/* Extra large screens */
@media (min-width: 1280px) {
    .dashboard-content {
        padding: 2.5rem;
    }
}

/* Mobile sidebar open state */
@media (max-width: 1023px) {
    .dashboard-sidebar.sidebar-open {
        transform: translateX(0);
    }
    
    .nav-text {
        display: block;
    }
}

/* Hide nav text on very small screens when sidebar is closed */
@media (max-width: 640px) {
    .dashboard-sidebar:not(.sidebar-open) .nav-text {
        display: none;
    }
    
    .dashboard-sidebar:not(.sidebar-open) {
        width: 4rem;
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 4rem;
    }
}