/* PGDD Cosmetic Theme - Non-intrusive styling for dotplot/riparian apps */
:root {
    --pgdd-primary: #10b981;
    --pgdd-secondary: #059669;
    --pgdd-light: #d1fae5;
    --pgdd-ultra-light: #f0fdf4;
    --pgdd-text-primary: #1f2937;
    --pgdd-text-secondary: #4b5563;
    --pgdd-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* PGDD Header - Matching locus search style */
.pgdd-header {
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    background-color: #f9fafb;
}

.pgdd-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.pgdd-header-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border: none;
}

.pgdd-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.pgdd-icon-container {
    background: linear-gradient(135deg, var(--pgdd-primary) 0%, var(--pgdd-secondary) 100%);
    border-radius: 1rem;
    padding: 0.75rem;
    margin-right: 1rem;
}

.pgdd-icon-container i {
    font-size: 2rem;
    color: white;
}

.pgdd-header-text h1 {
    color: var(--pgdd-text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pgdd-header-text p {
    color: #6b7280;
    font-size: 1.125rem;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* PGDD Footer - Non-intrusive */
.pgdd-footer {
    background: var(--pgdd-ultra-light);
    border-top: 1px solid var(--pgdd-light);
    padding: 2rem;
    margin-top: 2rem;
}

.pgdd-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.pgdd-footer-left {
    flex: 1;
}

.pgdd-footer-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pgdd-footer-title i {
    color: var(--pgdd-primary);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.pgdd-footer-title span {
    color: var(--pgdd-primary);
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pgdd-footer-left p {
    color: var(--pgdd-text-secondary);
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pgdd-footer-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* PGDD Buttons - Non-intrusive */
.pgdd-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pgdd-btn i {
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

.pgdd-btn-outline {
    border: 2px solid var(--pgdd-primary);
    color: var(--pgdd-primary);
    background: transparent;
}

.pgdd-btn-outline:hover {
    background: var(--pgdd-primary);
    color: white;
    text-decoration: none;
}

.pgdd-btn-secondary {
    background: var(--pgdd-light);
    color: var(--pgdd-primary);
    border: none;
}

.pgdd-btn-secondary:hover {
    background: var(--pgdd-primary);
    color: white;
    text-decoration: none;
}

/* Fullscreen Background */
body {
    background-color: white !important;
}

#synVisio {
    background-color: white !important;
}

.container, .root-container {
    background-color: white !important;
}

/* Ensure white background in fullscreen mode */
:fullscreen {
    background-color: white !important;
}

:-webkit-full-screen {
    background-color: white !important;
}

:-moz-full-screen {
    background-color: white !important;
}

:-ms-fullscreen {
    background-color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    main.container {
        padding: 0 1rem;
    }

    .pgdd-header {
        padding: 0.5rem 1rem;
    }
    
    .pgdd-header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .pgdd-icon-container {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .pgdd-footer {
        padding: 1rem;
    }
    
    .pgdd-footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .pgdd-footer-left {
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .pgdd-footer-content {
        flex-direction: column;
        text-align: center;
    }

    .pgdd-footer-right {
        flex-direction: column;
        width: 100%;
    }

    .pgdd-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}

/* Ensure no interference with Materialize */
.pgdd-header,
.pgdd-footer,
.pgdd-btn {
    box-sizing: border-box;
}

/* Override any potential conflicts without affecting main app */
.pgdd-header *,
.pgdd-footer * {
    box-sizing: border-box;
}
