/* YouTube API Settings Container */
.youtube-api-settings {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Settings Header */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.settings-header h3 {
    margin: 0;
    color: #333;
    font-family: 'Raleway', sans-serif;
    font-size: 1.5em;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    background: #f8f9fa;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.using-custom .status-dot {
    background-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.using-default .status-dot {
    background-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

/* Warning Message */
.api-key-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    margin-bottom: 20px;
}

.warning-icon {
    font-family: 'Raleway', sans-serif;
    font-size: 1.2em;
}

.warning-text {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9em;
    color: #856404;
    line-height: 1.4;
}

/* Form Elements */
.api-key-form {
    margin-top: 20px;
}

.api-key-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

.input-with-button {
    display: flex;
    gap: 8px;
}

.api-key-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

.api-key-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

/* Button Styles */
.action-button {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
}

.save-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.save-button:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
}

.remove-button {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.remove-button:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
}

/* Help Link */
.api-key-help {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.help-link:hover {
    background: rgba(0,123,255,0.1);
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .youtube-api-settings {
        margin: 10px;
        padding: 15px;
    }

    .settings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .input-with-button {
        flex-direction: column;
    }

    .api-key-actions {
        flex-direction: column;
        gap: 10px;
    }

    .action-button {
        width: 100%;
        justify-content: center;
    }
}
