/* Main Styles */
:root {
    /* Color Variables */
    --primary-color: #3498db;
    --secondary-bg: #ffffff;
    --panel-bg: #ffffff;
    --header-bg: #f8f9fa;
    --border-color: #e1e8ed;
    --text-color: #333333;
    --code-bg: #f8f9fa;
    --code-color: #e74c3c;
    --accent-bg: #e8f4fd;
    --dark-secondary-bg: #2a2a2a;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

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

/* Header Styles */
header {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Controls */
.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.direction-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.direction-selector select,
.sample-selector select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.sample-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.sample-selector label {
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
}

.sample-selector select {
    min-width: 150px;
}

.load-sample-button {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.load-sample-button:hover {
    background: #8e44ad;
}

/* Footer Styles */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-links h3 {
    color: #ecf0f1;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.detail-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: #ecf0f1;
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.detail-link:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateX(5px);
    border-left-color: #2ecc71;
}

.link-icon {
    font-size: 24px;
    min-width: 32px;
    text-align: center;
}

.link-content strong {
    display: block;
    color: #ecf0f1;
    margin-bottom: 5px;
    font-size: 16px;
}

.link-content small {
    display: block;
    color: #bdc3c7;
    font-size: 13px;
    line-height: 1.4;
}

.footer-info {
    text-align: right;
    padding-top: 20px;
}

.footer-info p {
    margin: 5px 0;
    color: #bdc3c7;
    font-size: 14px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-info {
        text-align: center;
        padding-top: 0;
    }
    
    .detail-link {
        padding: 12px;
    }
    
    .link-content strong {
        font-size: 15px;
    }
    
    .link-content small {
        font-size: 12px;
    }
}