/* BioSync Lite - Public Styles */

.biosync-dashboard,
.biosync-quick-log {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.biosync-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.biosync-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
}

/* Log Form */
.biosync-log-form {
    width: 100%;
}

.biosync-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.biosync-form-field {
    display: flex;
    flex-direction: column;
}

.biosync-form-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.biosync-form-field input[type="number"],
.biosync-form-field textarea,
.biosync-form-field select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.biosync-form-field small {
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}

.biosync-input-group {
    display: flex;
    gap: 8px;
}

.biosync-input-group input {
    flex: 1;
}

.biosync-input-group select {
    width: 80px;
}

/* Mood Buttons */
.biosync-mood-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.biosync-mood-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.biosync-mood-option input[type="radio"] {
    display: none;
}

.biosync-mood-option:hover {
    border-color: #0073aa;
    background: #f0f0f0;
}

.biosync-mood-option.active {
    border-color: #0073aa;
    background: #e8f4f8;
}

.biosync-mood-emoji {
    font-size: 32px;
    margin-bottom: 4px;
}

.biosync-mood-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.biosync-mood-compact .biosync-mood-emoji {
    font-size: 28px;
}

.biosync-mood-compact .biosync-mood-label {
    display: none;
}

/* Form Actions */
.biosync-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.biosync-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.biosync-button-primary {
    background: #0073aa;
    color: #fff;
}

.biosync-button-primary:hover {
    background: #005a87;
}

.biosync-button-secondary {
    background: #f0f0f0;
    color: #333;
}

.biosync-button-secondary:hover {
    background: #e0e0e0;
}

.biosync-button-danger {
    background: #dc3232;
    color: #fff;
}

.biosync-button-danger:hover {
    background: #b52727;
}

.biosync-save-message {
    color: #46b450;
    font-size: 14px;
}

.biosync-save-message.error {
    color: #dc3232;
}

/* Stats Grid */
.biosync-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.biosync-stat-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.biosync-stat-icon {
    font-size: 40px;
    margin-right: 16px;
}

.biosync-stat-content {
    flex: 1;
}

.biosync-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
    line-height: 1.2;
}

.biosync-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.biosync-stat-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Streaks */
.biosync-streaks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.biosync-streak-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.biosync-streak-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.biosync-streak-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.biosync-streak-label {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.9;
}

/* History Table */
.biosync-history-table-wrapper {
    overflow-x: auto;
}

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

.biosync-history-table th,
.biosync-history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.biosync-history-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.biosync-history-table tr:hover {
    background: #f9f9f9;
}

.biosync-mood-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.biosync-mood-note-preview {
    cursor: help;
}

.biosync-no-data {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

/* Privacy Section */
.biosync-privacy-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Login Prompt */
.biosync-login-prompt {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.biosync-login-prompt a {
    margin: 0 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .biosync-dashboard,
    .biosync-quick-log {
        padding: 12px;
    }
    
    .biosync-section {
        padding: 16px;
    }
    
    .biosync-form-grid {
        grid-template-columns: 1fr;
    }
    
    .biosync-stats-grid {
        grid-template-columns: 1fr;
    }
}
