:root {
    --color-primary: #000000;
    --color-background: #FFFFFF;
    --color-accent: #4ED587;
    --color-accent-hover: #3EBB73;
    --color-text: #000000;
    --color-text-muted: #666666;
    --color-text-secondary: #555555;
    --color-text-light: #888888;
    --color-border: #E5E5E5;
    --color-error: #DC2626;
    --color-success: #4ED587;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
}

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

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-background);
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.logo {
    display: block;
    max-width: 200px;
    margin: 0 auto 32px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 44px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.password-toggle-btn:hover {
    color: var(--color-primary);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
}

.btn-secondary {
    background-color: var(--color-background);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: #F5F5F5;
}

.btn-danger {
    background-color: var(--color-error);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-error {
    background-color: #FEE2E2;
    color: var(--color-error);
    border: 1px solid #FECACA;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.header {
    background-color: var(--color-primary);
    color: var(--color-background);
}

.header-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 64px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    height: 42px;
    filter: invert(1);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: var(--color-background);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
    opacity: 1;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-message {
    font-weight: 500;
    color: #fff;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.header-icon-btn:hover {
    opacity: 1;
}

.header-icon-btn.active {
    opacity: 1;
}

/* Profile Page Styles */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-row {
    display: flex;
    gap: 16px;
}

.profile-label {
    font-weight: 600;
    min-width: 80px;
    color: #666;
}

.profile-value {
    color: #333;
}

.terms-updated {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.terms-page-content {
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #eee;
    line-height: 1.7;
}

.terms-page-content h2 {
    font-size: 18px;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #000;
}

.terms-page-content h2:first-of-type {
    margin-top: 20px;
}

.terms-page-content p {
    margin-bottom: 16px;
    color: #333;
}

.terms-page-content a {
    color: #4ED587;
}

.wysiwyg-editor {
    background: #fff;
    min-height: 200px;
    border-radius: 0 0 4px 4px;
}

.wysiwyg-editor .ql-editor {
    min-height: 200px;
    font-size: 14px;
    line-height: 1.6;
}

.ql-toolbar.ql-snow {
    border-radius: 4px 4px 0 0;
    border-color: #ddd;
}

.ql-container.ql-snow {
    border-color: #ddd;
    border-radius: 0 0 4px 4px;
}

.content-with-right-sidebar {
    display: flex;
    gap: 24px;
}

.main-with-right-sidebar {
    flex: 1;
    min-width: 0;
}

.right-sidebar {
    width: 280px;
    flex-shrink: 0;
    padding: 24px 24px 24px 0;
}

.right-sidebar-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
}

.news-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-archive-item {
    margin-bottom: 12px;
}

/* Core Values Sidebar */
.core-values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.core-value-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

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

.core-value-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, #3bc06e 100%);
    border-radius: 8px;
}

.core-value-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.core-value-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
    padding-top: 8px;
}

.news-archive-link {
    display: block;
    padding: 10px 12px;
    background: #f8f8f8;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s, border-color 0.2s;
    border-left: 3px solid transparent;
}

.news-archive-link:hover {
    background: #f0f0f0;
    border-left-color: var(--color-accent);
}

.news-archive-link.active {
    background: var(--color-accent);
    border-left-color: #000;
    color: #000;
}

.news-archive-link.active .news-archive-date {
    color: #333;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #000;
}

.articles-intro {
    color: #666;
    margin-bottom: 16px;
    font-size: 14px;
}

.external-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.external-link-item {
    border-bottom: 1px solid #eee;
}

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

.external-link {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
    position: relative;
}

.external-link:hover {
    background-color: #f8f8f8;
}

.external-link-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
    padding-right: 24px;
}

.external-link:hover .external-link-title {
    color: var(--color-accent);
}

.external-link-meta {
    font-size: 13px;
    color: #888;
}

.external-link-summary {
    color: #666;
}

.external-link-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

.external-link:hover .external-link-icon {
    color: var(--color-accent);
}

.news-archive-date {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.news-archive-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .content-with-right-sidebar {
        flex-direction: column;
    }
    
    .right-sidebar {
        width: 100%;
        padding: 16px;
        border-top: 1px solid #eee;
    }
}

.header-user span {
    opacity: 0.8;
}

.main {
    padding: 32px 0;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

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

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

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    font-weight: 600;
    background-color: #FAFAFA;
}

.table tr:hover {
    background-color: #FAFAFA;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.badge-active {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-inactive {
    background-color: #FEE2E2;
    color: #991B1B;
}

.badge-admin {
    background-color: #000000;
    color: #FFFFFF;
}

.badge-investor {
    background-color: #4ED587;
    color: #000000;
}

.content-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
    position: relative;
}

.content-item:hover {
    border-color: var(--color-accent);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.content-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.content-tags {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.content-summary {
    font-weight: 500;
    margin-bottom: 8px;
}

.content-body-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.content-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.read-more-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.read-more-link:hover {
    text-decoration: underline;
}

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

.content-meta {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.content-body {
    color: var(--color-text);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.empty-state h3 {
    margin-bottom: 8px;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--color-background);
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 16px;
    background-color: var(--color-background);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 16px;
    min-height: 150px;
    resize: vertical;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

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

.text-muted {
    color: var(--color-text-muted);
}

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

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.checkbox-label a {
    color: var(--color-accent);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.forgot-link,
.back-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover,
.back-link:hover {
    color: var(--color-accent);
}

.page-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    text-align: center;
}

.alert-info {
    background-color: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #93C5FD;
}

.terms-container {
    min-height: 100vh;
    padding: 40px 20px;
    background-color: var(--color-background);
}

.terms-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.terms-box .logo-small {
    max-width: 120px;
    margin-bottom: 24px;
}

.terms-content {
    margin-bottom: 32px;
}

.terms-content h2 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.terms-content h2:first-child {
    margin-top: 0;
}

.terms-content p {
    margin-bottom: 12px;
    color: var(--color-text);
}

.terms-content ul {
    margin-left: 24px;
    margin-bottom: 12px;
}

.terms-content li {
    margin-bottom: 8px;
}

.badge-pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-processed {
    background-color: #D1FAE5;
    color: #065F46;
}

/* Footer Styles */
.site-footer {
    background-color: #000000;
    color: #FFFFFF;
    padding: 40px 20px;
    margin-top: auto;
}

.footer-container {
    width: 100%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
}

.footer-section {
    flex: 1 1 0;
    min-width: 0;
}

.footer-section:first-child {
    flex: 1.3 1 0;
}

.footer-section:nth-child(3) {
    text-align: right;
}

.footer-section p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.footer-section p:last-child {
    margin-bottom: 0;
}

.footer-company {
    font-weight: 500;
}

.footer-email a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-email a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    height: 48px;
    filter: invert(1);
    opacity: 0.9;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-section {
        min-width: 100%;
    }
    
    .footer-logo-section {
        justify-content: center;
    }
    
    .site-footer {
        padding: 32px 16px;
    }
}

/* Sidebar Styles */
.layout-with-sidebar {
    display: flex;
    min-height: calc(100vh - 64px);
}

.sidebar {
    width: 240px;
    background-color: #000000;
    color: #FFFFFF;
    flex-shrink: 0;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 56px;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.sidebar-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle-btn svg {
    transform: rotate(180deg);
}

.sidebar-nav {
    padding: 8px 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.sidebar-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav-item.active {
    background-color: var(--color-accent);
    color: #000000;
}

.sidebar-nav-item.active svg {
    stroke: #000000;
}

.sidebar-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #FFFFFF;
}

.sidebar-nav-item span {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .sidebar-nav-item span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-section-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 16px 12px;
}

.sidebar-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 16px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .sidebar-section-label {
    opacity: 0;
}

.sidebar.collapsed .sidebar-section-divider {
    margin: 16px 8px;
}

.sidebar-nav-bottom {
    margin-top: 0;
}

.sidebar.collapsed .sidebar-nav-item {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .sidebar-toggle {
    justify-content: center;
}

.sidebar-main-content {
    flex: 1;
    overflow-y: auto;
    background-color: var(--color-background);
}

.sidebar-main-content .main {
    padding: 32px;
}

.sidebar-main-content .main .container {
    max-width: 100%;
}

@media (max-width: 768px) {
    .header-nav {
        gap: 16px;
    }
    
    .header-user span {
        display: none;
    }
    
    .table {
        display: block;
        overflow-x: auto;
    }
    
    .login-box {
        padding: 24px;
        margin: 16px;
    }
    
    .terms-box {
        padding: 24px;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 64px;
        height: calc(100vh - 64px);
        z-index: 50;
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
        width: 240px;
    }
    
    .sidebar.collapsed .sidebar-nav-item span {
        opacity: 1;
        width: auto;
    }
    
    .sidebar.collapsed .sidebar-nav-item {
        justify-content: flex-start;
        padding: 12px 16px;
    }
    
    .layout-with-sidebar {
        flex-direction: column;
    }
    
    .sidebar-main-content .main {
        padding: 16px;
    }
}

/* Contact Page Styles */
.contact-container {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.contact-card {
    background-color: #000000;
    color: #FFFFFF;
    border-radius: 12px;
    padding: 48px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 32px;
    height: 32px;
    stroke: #000000;
}

.contact-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.contact-email-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.contact-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-email {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-email:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.contact-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

@media (max-width: 600px) {
    .contact-card {
        padding: 32px 24px;
        margin: 0 16px;
    }
    
    .contact-email {
        font-size: 18px;
    }
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background-color: #ccc;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 0;
}

.toggle-switch.active {
    background-color: var(--color-accent);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

/* Team Photo Styles */
.team-photo-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.team-photo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-placeholder svg {
    width: 24px;
    height: 24px;
    stroke: #999;
}

.team-photo-preview {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.current-photo {
    margin-bottom: 12px;
}

.inline-form {
    display: inline;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

/* Team Page (Investor) */
.team-section {
    margin-bottom: 48px;
}

.team-section:last-child {
    margin-bottom: 0;
}

.team-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent);
}

.team-card-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: 12px;
    color: #0A66C2;
    transition: color 0.2s, transform 0.2s;
}

.team-card-linkedin:hover {
    color: #004182;
    transform: scale(1.1);
}

.team-card-linkedin svg {
    width: 24px;
    height: 24px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.team-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: border-color 0.2s;
}

.team-card:hover {
    border-color: var(--color-accent);
}

.team-card-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f5f5f5;
}

.team-card-photo-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-photo-placeholder svg {
    width: 64px;
    height: 64px;
    stroke: #ccc;
}

.team-card-content {
    padding: 20px;
}

.team-card-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-card-title {
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.team-card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 16px;
}

.form-group-half {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Valuation Styles */
.valuation-amount {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 16px;
}

.summary-preview {
    font-size: 13px;
    color: #666;
}

.current-file {
    margin-bottom: 12px;
}

/* Valuation Cards (Investor) */
.valuation-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.valuation-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s;
}

.valuation-card:hover {
    border-color: var(--color-accent);
}

.valuation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

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

.valuation-card-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-accent);
}

.valuation-card-summary {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 16px;
    white-space: pre-wrap;
}

.valuation-card-footer {
    display: flex;
    justify-content: flex-end;
}

.valuation-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.valuation-pdf-link:hover {
    background-color: #333;
}

.valuation-pdf-link svg {
    width: 18px;
    height: 18px;
}

/* Dashboard Hero */
.dashboard-hero {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
}

.dashboard-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.dashboard-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    color: #fff;
}

.dashboard-hero-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.dashboard-hero-content p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 700px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 32px;
}

.dashboard-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
}

.section-view-all {
    display: inline-block;
    margin-top: 16px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.section-view-all:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.pagination-btn:hover {
    background-color: #333;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

/* Videos & Podcasts */
.videos-list {
    display: grid;
    gap: 24px;
}

.video-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.video-card:hover {
    border-color: var(--color-accent);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--color-text);
}

.video-summary {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.video-date {
    font-size: 13px;
    color: #999;
}

.video-external-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #cc0000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.video-external-link:hover {
    color: #ff0000;
}

.video-external-link svg {
    width: 14px;
    height: 14px;
}

/* Financial Documents */
.financial-documents-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.financial-document-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.financial-document-card:hover {
    border-color: var(--color-accent);
}

.financial-document-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 10px;
}

.financial-document-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-text);
}

.financial-document-info {
    flex: 1;
    min-width: 0;
}

.financial-document-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 6px 0;
}

.financial-document-narrative {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.financial-document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-light);
}

.financial-document-filename {
    font-weight: 500;
}

.financial-document-download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.financial-document-download svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .financial-document-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .financial-document-download {
        align-self: flex-start;
        margin-top: 12px;
    }
}

/* Toggle Switch Styles (label+input form toggles used in Settings) */
label.toggle-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    /* Reset button-toggle properties that would bleed through */
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
    position: static;
    transition: none;
    padding: 0;
    border: none;
}

label.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

label.toggle-switch .toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: var(--color-border);
    border-radius: 24px;
    transition: background-color 0.2s ease;
    margin-right: 10px;
    flex-shrink: 0;
}

label.toggle-switch .toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

label.toggle-switch input:checked + .toggle-slider {
    background-color: var(--color-accent);
}

label.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Social Media Settings Styles */
.social-link-row {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.social-link-row:last-of-type {
    border-bottom: none;
    margin-bottom: 24px;
}

.social-link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.social-link-header .form-label {
    margin-bottom: 0;
}

/* Sidebar Social Links */
.sidebar-social {
    padding: 16px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.sidebar-social-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.sidebar-social-links {
    display: flex;
    gap: 12px;
}

.sidebar-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--color-text);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-social-link:hover {
    background-color: var(--color-accent);
    color: white;
}

.sidebar-social-link svg {
    width: 18px;
    height: 18px;
}

/* Right Sidebar Social Links (smaller) */
.right-sidebar-social {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.right-sidebar-social-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.right-sidebar-social-links {
    display: flex;
    gap: 8px;
}

.right-sidebar-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: var(--color-text);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.right-sidebar-social-link:hover {
    background-color: var(--color-accent);
    color: white;
}

.right-sidebar-social-link svg {
    width: 14px;
    height: 14px;
}

/* Drag-and-drop reorder rows */
tr.sortable-item:hover td:first-child svg {
    color: #666;
}
tr.sortable-item.drag-over {
    background: #f0fdf4;
}
